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

前端 未结 11 1623
我寻月下人不归
我寻月下人不归 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:10

    Quit (force quit) all instances of chrome. Otherwise the below command will not work.

    open -a "Google Chrome" --args --allow-file-access-from-files
    

    Executing this command in terminal will open Chrome regardless of where it is installed.

提交回复
热议问题