Chrome load local resource

时光毁灭记忆、已成空白 提交于 2020-01-14 03:07:48

问题


I want to use a local JS file for development reasons but run into "Not allowed to load local resource"-error in chrome (Version 41.0.2272.89). I read a lot of threads, but this:

"C:\PathTo\Chrome.exe" --allow-file-access-from-files

does not work for me on my testpage https://jsfiddle.net/sreL1nge/, even that chrome://version says:

"C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe" --allow-file-access-from-files --flag-switches-begin --flag-switches-end

Can someone try wether it works for him on the testpage? Any alternative ways to access a local file without setting up a local server?

来源:https://stackoverflow.com/questions/29006336/chrome-load-local-resource

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