跨域错误提示:Access to XMLHttpRequest at ‘A‘ from origin ‘B‘ has been blocked by CORS policy
原因:跨域请求从http://a.com/xxx跳转到https://b.com/xxx错误:Access to XMLHttpRequest at 'xx' from origin 'xxx' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.原本代码:$.ajax({ type: "GET", url: url_B,
原创
2020-09-29 18:35:03 ·
3308 阅读 ·
0 评论