Access to XMLHttpRequest at 'XXX' from origin 'XX' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present o AJAX跨域请求解决方法

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

 

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

 dataType: 'jsonp',  
 crossDomain: true,  

最终:

 

posted @ 2018-12-13 23:23  Sea。  阅读(91971)  评论(4编辑  收藏  举报