How to launch html using Chrome at “--allow-file-access-from-files” mode?

前端 未结 11 1901
我寻月下人不归
我寻月下人不归 2020-11-21 23:12

I have the same situation with HERE

And to solve this problem I have to launch html file using Chrome at \"--allow-file-access-from-files\" mode. I tried next steps

11条回答
  •  猫巷女王i
    2020-11-22 00:05

    Search for the path of your Chrome executable and then, on your cmd, try :

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

    Source

    EDIT : As I see on your question, don't forget that Windows is a little bit similar to Unix, so when you type "chrome ...", cmd will search for Chrome in the PATH, but in general the Chrome folder isn't on the PATH. Also, you don't specify an extension for your executable... So if you move to Chrome's folder, this command will probably work too :

    > .\chrome.exe --allow-file-access-from-files
    

提交回复
热议问题