New update of jQuery mobile needs a web server to run

邮差的信 提交于 2020-01-07 06:55:53

问题


Since less than a week ago jQuery Mobile made an automatic update that made it very difficult to debug without using a web server to run the application. To code I used to only open the .html file in the web browser as a simple document and I could debug, but now I need to run it in a web server to make it work, it keeps sending this message when I open it as a simple file:

Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///C:/Users/LL402/Desktop/index.html' cannot be created in a document with origin 'null'.

Does someone know how to fix this? I hate using a server to test a simple web application.

来源:https://stackoverflow.com/questions/32439759/new-update-of-jquery-mobile-needs-a-web-server-to-run

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!