Jquery .load 同源策略
无论如何,我可以欺骗 Jquery .load 同源策略吗?我最接近的是 本教程。
但这仅涉及 rss feed。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
同源策略是浏览器的事情,而不是 jQuery 的事情。
JSON-P 是解决此问题的常用方法,并且不仅限于 RSS 提要。它甚至记录在 jQuery 文档 中(请参阅使用 Flickr 的示例)
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)