首頁 >後端開發 >php教程 >javascript - ajax 跨域问题

javascript - ajax 跨域问题

WBOY
WBOY原創
2016-06-06 20:47:331165瀏覽

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