HBuilder mui 报错No 'Access-Control-Allow-Origin' header

时间:2017-04-06 19:43:54   收藏:0   阅读:1154

 Response to preflight request doesn‘t pass access control check: No ‘Access-Control-Allow-Origin‘ header is present on the requested resource. Origin ‘null‘ is therefore not allowed access.

 网页浏览器 mui ajax 调用服务器地址时报上面错误,网上说 跨域问题,”调试的时候chrome控制台报错,然后给chromd增加一个启动参数 --disable-web-security就行了”,但是一直不起作用,最后还是用android直接调试了,如果有解决方法,也请大家告知一下,谢谢。

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!