Home > Backend Development > PHP Tutorial > javascript - ajax 跨域问题

javascript - ajax 跨域问题

WBOY
Release: 2016-06-06 20:47:33
Original
1161 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template