开发者

XmlHTTPRequest and 301 redirects

Do any browsers follow cross-domain 301 redirects开发者_如何学Go when processing XmlHTTPRequests (or any other method a page can get the contents of another)


No. You can't use a 301 to work around the same origin policy.


You need to setup a cross-domain proxy, and one should exist for your web application platform. These are commonly used by social networks to bypass the same-origin policy.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜