jQuery .load相同来源策略 [英] Jquery .load Same origin policy

查看:137
本文介绍了jQuery .load相同来源策略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

反正我可以欺骗Jquery .load相同来源策略吗?我最接近的是本教程

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

但这仅涉及rss feed。

But that only deals with rss feeds.

推荐答案

相同的来源策略是浏览器,而不是jQuery。

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

JSON-P 是解决此问题的常用方法,不仅限于RSS feed。它甚至记录在 jQuery文档中(请参阅使用Flickr的示例)

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)

这篇关于jQuery .load相同来源策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆