前天使用的cocos的功能云函数,尝试用http请求出现跨域问题,具体错误如下
Access to fetch at ‘https://www.baidu.com/’ from origin ‘http://localhost:7456’ 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.
解决了吗?我在ios端也想访问微信云函数