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

前端 未结 11 1626
我寻月下人不归
我寻月下人不归 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-21 23:51

    As of this writing, in OS X, it will usually look like this

    "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --allow-file-access-from-files
    

    If you are a freak like me, and put your apps in ~/Applications, then it will be

    "/Users/yougohere/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --allow-file-access-from-files
    

    If neither of those are working, then type chrome://version in your Chrome address bar, and it will tell you what "command line" invocation you should be using. Just add --allow-file-access-from-files to that.

提交回复
热议问题