未登陆模式调用云开发 uploadFile 上传图片出现跨域问题导致上传失败
Access to XMLHttpRequest at 'https://cos.ap-shanghai.myqcloud.com/7465-test-o9vva-1300347773/LunBo/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20200929213408.png' from origin 'http://localhost:8081' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
请提供一下SDK的信息
看起来像是没有把本地开发用的域名加入到安全域名里,可以去控制台把 localhost:8081 加入到 Web 安全域名内
1.1.0: https://res.wx.qq.com/open/js/cloudbase/1.1.0/cloud.js