How can I launch Chrome with flags from command line more concisely?

后端 未结 4 668
执念已碎
执念已碎 2021-02-02 07:57

I am developing a WebGL driven application and I want to launch chrome like this from the command line:

open -a Google\\ Chrome --args --disable-web-security
         


        
4条回答
  •  礼貌的吻别
    2021-02-02 08:32

    Why not just run a webserver? Open a terminal and type

    cd folder_with_html_and_assets
    python -m SimpleHTTPServer
    

    Now in your browser to go http://localhost:8000 When your done go to the terminal and press Ctrl-C

    That seems much better than disabling your security and risking getting pwnd.

提交回复
热议问题