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

 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直接调试了,如果有解决方法,也请大家告知一下,谢谢。

原文地址:https://www.cnblogs.com/newlangwen/p/6674961.html