调试正常但发布后,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浏览器可以看到图片,谷歌浏览器不行
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浏览器可以看到图片,谷歌浏览器不行
没有找到相关结果
已邀请:
2 个回复
nod32amon
赞同来自:
cuixueying
赞同来自: