开发者

XmlHTTPRequest and 301 redirects

开发者 https://www.devze.com 2023-01-07 00:14 出处:网络
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

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

精彩评论

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

关注公众号