Search code examples
jquerysame-origin-policy

Jquery .load Same origin policy


Is there anyway i can fool the Jquery .load Same origin policy? The closest i've come is with this tutorial.

But that only deals with rss feeds.


Solution

  • The same origin policy is a browser thing, not a jQuery thing.

    JSON-P is the usual way to work around this and is not limited to RSS feeds. It is even documented in the jQuery documentation (see the example that uses Flickr)