当前位置:Gxlcms > PHP教程 > javascript-ajax跨域问题

javascript-ajax跨域问题

时间:2021-07-01 10:21:17 帮助过:12人阅读

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;?

人气教程排行