php No 'Access-Control-Allow-Origin' header is present on the requested resource.'Ajax跨域访问解决方法

在PHP请求头加上 

header("Access-Control-Allow-Origin: *"); 

猜你喜欢

转载自blog.csdn.net/qq_35713752/article/details/80356173