Jquery .load Same origin policy

后端 未结 1 982
余生分开走
余生分开走 2020-12-11 18:38

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.

相关标签:
1条回答
  • 2020-12-11 19:06

    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)

    0 讨论(0)
提交回复
热议问题