首页 >后端开发 >php教程 >javascript - ajax 跨域问题

javascript - ajax 跨域问题

WBOY
WBOY原创
2016-06-06 20:47:331163浏览

XMLHttpRequest cannot load http://www..com/login/isLogin. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www..com' is therefore not allowed access.

弄清楚了。是顶级域名的问题。

回复内容:

XMLHttpRequest cannot load http://www..com/login/isLogin. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www..com' is therefore not allowed access.

弄清楚了。是顶级域名的问题。

jsonp 留意下,最常见就是callback =?

是不是设置了withCredentials = true;?

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn