Jquery .load Same origin policy

后端 未结 1 985
余生分开走
余生分开走 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)
提交回复
热议问题