[]发布之后报错,跨域问题
mac 下chrome运行发布内容出错,编译没有任何问题
laya.core.js:12245 Failed to load file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/res/atlas/comp.atlas: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
Access to Image at 'file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/comp/classic_numbers_8.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access.
laya.core.js:12245 Failed to load file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/res/atlas/comp.atlas: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
Access to Image at 'file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/comp/classic_numbers_8.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access.
没有找到相关结果
已邀请:
1 个回复
qian
赞同来自: AiLiner
参考跨域解决