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

前端 未结 11 1628
我寻月下人不归
我寻月下人不归 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条回答
  •  别跟我提以往
    2020-11-22 00:02

    REM Kill all existing instance of chrome 
    taskkill /F /IM chrome.exe /T
    REM directory path where chrome.exe is located
    set chromeLocation="C:\Program Files (x86)\Google\Chrome\Application"
    cd %chromeLocation%
    cd c:
    start chrome.exe --allow-file-access-from-files
    

    save above lines as .bat file

提交回复
热议问题