macosgoogle-chromewebsecurity

How can I start chrome in insecure mode in mac?


I know how to Start chrome in insecure mode via command line with these options: --disable-web-security --disable-gpu. How can I do it in MAC OS? So i am going inside the location where chrome is installed and running this command

chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security

But it is throwing error zsh: command not found: chrome.exe


Solution

  • If you are on a Mac, this is the correct command (Mac does not open .exe files):

    open -a "Google Chrome" --args --disable-web-security --user-data-dir=/tmp/chrome
    

    You need to specify both arguments for the command to work. The first one to disable web security and the second one to specify a folder where Chrome will create the temporary profile and keep the necessary data.