关于cocos2d-html5问题

关于cocos2d-html5问题

资源文件在本地,chrome运行时会报如下错误:

Cross-origin image load denied by Cross-Origin Resource Sharing policy.

请教各位大神,除了用–allow-file-access-from-files 的方法外,还有什么好的解决方法吗?

谢谢!

吧资源和你的程序放在同一个域名下面就好了.