Web-mobile在本地打开一切正常,部署到服务器就访问不了了

The devicemotion event is deprecated on insecure origins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.

Failed to execute ‘requestFullScreen’ on ‘Element’: API can only be initiated by a user gesture.

Failed to load resource: the server responded with a status of 404 (Not Found)

cocos2d-js-min.js:18 Failed to download package for 014dc97f-c7ba-4614-b42a-be61ba104507

cocos2d-js-min.js:13 Failed to load scene: Error: [AssetLibrary] loading JSON or dependencies failed: undefined
主要是第一条引起的卡在进度条的闪屏页,服务器没有开HTTPS啊,导致JSON文件访问不到
请问该如何解决这个问题

014dc97f-c7ba-4614-b42a-be61ba104507.json这个文件是存在的

iis 没有开

服务器是用什么搭建的。是因为你json文件不能访问吧。

正解,刚才自己也想到了并解决,谢谢各位兄弟

添加json的MIME类型,确实解决了问题

在么,请教个问题,我也遇到了,但是我是把页面嵌入到 mvc中报错的,不知道怎么弄了