Tutorial :XmlHTTPRequest and 301 redirects



Question:

Do any browsers follow cross-domain 301 redirects when processing XmlHTTPRequests (or any other method a page can get the contents of another)


Solution:1

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


Solution:2

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.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »