最近写公众号碰到了个问题,ios打开公众号或者用谷歌浏览器打开公众号链接提示
Access to fetch at ‘网址’ from origin ‘网址’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
后来发现是因为接口请求是http的,域名是https的,需要把接口请求地址也改成https解决