解决 js ajax跨域访问报“No 'Access-Control-Allow-Origin' header is present on the requested resource.”错误

参考页面:https://blog.csdn.net/idomyway/article/details/79572973

如果请求的是PHP页面:

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

 

posted @ 2019-04-08 19:58  viof7852  阅读(230)  评论(0编辑  收藏  举报