Access to XMLHttpRequest at 'XXX' from origin 'XX' has been blocked by CORS policy: No 'Access-Contr...

今天出现了一个问题找了好久先看代码:

Access to XMLHttpRequest at 'XXX' from origin 'XX' has been blocked by CORS policy: No 'Access-Contr..._第1张图片

 

这可能是个BUG吧插入代码:

 dataType: 'jsonp',  
 crossDomain: true,  

最终:

Access to XMLHttpRequest at 'XXX' from origin 'XX' has been blocked by CORS policy: No 'Access-Contr..._第2张图片

 

转载于:https://www.cnblogs.com/zzguan/p/10117174.html

你可能感兴趣的:(Access to XMLHttpRequest at 'XXX' from origin 'XX' has been blocked by CORS policy: No 'Access-Contr...)