本地jquery跨域报错如何解决?Origin null is not allowed by Access-Control-Allow-Origin.本地a.html中jquery load("b.html") google浏览器报跨域错误Origin null is not allowed by Access-Control-Allow-Origin.要如何解决呢?
来源:学生作业帮助网 编辑:作业帮 时间:2024/09/03 12:27:19
![本地jquery跨域报错如何解决?Origin null is not allowed by Access-Control-Allow-Origin.本地a.html中jquery load(](/uploads/image/z/11768020-52-0.jpg?t=%E6%9C%AC%E5%9C%B0jquery%E8%B7%A8%E5%9F%9F%E6%8A%A5%E9%94%99%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%3FOrigin+null+is+not+allowed+by+Access-Control-Allow-Origin.%E6%9C%AC%E5%9C%B0a.html%E4%B8%ADjquery+load%28%22b.html%22%29+google%E6%B5%8F%E8%A7%88%E5%99%A8%E6%8A%A5%E8%B7%A8%E5%9F%9F%E9%94%99%E8%AF%AFOrigin+null+is+not+allowed+by+Access-Control-Allow-Origin.%E8%A6%81%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%E5%91%A2%3F)
本地jquery跨域报错如何解决?Origin null is not allowed by Access-Control-Allow-Origin.本地a.html中jquery load("b.html") google浏览器报跨域错误Origin null is not allowed by Access-Control-Allow-Origin.要如何解决呢?
本地jquery跨域报错如何解决?Origin null is not allowed by Access-Control-Allow-Origin.
本地a.html中jquery load("b.html") google浏览器报跨域错误Origin null is not allowed by Access-Control-Allow-Origin.要如何解决呢?
本地jquery跨域报错如何解决?Origin null is not allowed by Access-Control-Allow-Origin.本地a.html中jquery load("b.html") google浏览器报跨域错误Origin null is not allowed by Access-Control-Allow-Origin.要如何解决呢?
报错部分的英文的大概意思就是不允许跨域,至于什么叫做不允许跨域呢?
我尝试了chrome、firfox、opera都出现了这种情况,但是使用IE8就不会出现这种错误,很多人不是很理解.
这里Windows help and support IE本身也并不是允许跨域的因为这样很不安全,但是如果不跨域的话又带来很多不便,所以会让你手动的选择一下是否允许跨域.而chrome、firfox、opera则默认就是不允许.