[]调试正常但发布后,index.html在浏览器打开出现跨源受限的问题

Image from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access.
laya.core.min.js:6 [warn]Retry to load: E:/laya/layatest/release/layaweb/1.0.0/res/img/image.png
index.html:1 Image from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access.
laya.core.min.js:6 [error]Failed to load: E:/laya/layatest/release/layaweb/1.0.0/res/img/image.png
--------
ie浏览器可以看到图片,谷歌浏览器不行
已邀请:

nod32amon

赞同来自:

果然需要web服务的支撑,启动服务就正常了

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作