Cc.loader.load跨域的问题。

cc.loader.load(url , function (err, tex) {
if (err)
cc.log(“cc.loader.loadImg error:” + err);
else {
cc.log(“cc.loader.loadImg tex:” + tex);
}
});
报这个错误
[Error] XMLHttpRequest cannot load https://xxxxx.xxx.xx. Origin http://localhost:7457 is not allowed by Access-Control-Allow-Origin.

这个问题没人回答么,cocos—js版本时,可以用loadimg方法,可以设置是否跨域的。

http://forum.cocos.com/t/creator-webgl/36969

http://forum.cocos.com/t/http/35673