Access to XMLHttpRequest at '*url*' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. GET *url* net::ERR_FAILED

requirejs ajax错误

修改

添加

crossDomain: true,
dataType: 'jsonp'

如图

猜你喜欢

转载自www.cnblogs.com/yyz2013/p/12725020.html