最近写公众号碰到了个问题,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解决

Logo

智能硬件社区聚焦AI智能硬件技术生态,汇聚嵌入式AI、物联网硬件开发者,打造交流分享平台,同步全国赛事资讯、开展 OPC 核心人才招募,助力技术落地与开发者成长。

更多推荐