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

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

    Don't do this! You're opening your machine to attacks. Instead run a local server. It's as easy as opening a shell/terminal/commandline and typing

    cd path/to/files
    python -m SimpleHTTPServer
    

    Then pointing your browser to

    http://localhost:8000
    

    If you find it's too slow consider this solution

提交回复
热议问题