问题
我之前能够通过
this.spriteFrame = new cc.SpriteFrame("http://img3.imgtn.bdimg.com/it/u=826828499,2412343960&fm=23&gp=0.jpg");
正常加载其他网站的图片。
今天突然发现,在浏览器上,出现以下错误
Access to Image at 'http://img3.imgtn.bdimg.com/it/u=826828499,2412343960&fm=23&gp=0.jpg' from origin 'http://localhost:7456' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:7456' is therefore not allowed access. The response had HTTP status code 403.
在模拟器上,还是不能加载,也没有报错。
目标
接入SDK后,获得玩家头像的url,然后在游戏加载显示
ccc版本
v1.4.2
有没有好的解决办法?
