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

后端 未结 4 669
执念已碎
执念已碎 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:51

    The Easiest way to Launch Chrome with flags in MAC using terminal is :

    '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' --disable-features=CrossSiteDocumentBlockingAlways,CrossSiteDocumentBlockingIfIsolating

    Any filter can come after -- in the above code --disable-features=CrossSiteDocumentBlockingAlways,CrossSiteDocumentBlockingIfIsolating is just an example.

    Note: Make sure to close all instances of Chrome before running it.

提交回复
热议问题