MacOS – How to open new Chrome window with different arguments

google-chromemacos

I want to have a new Chrome window with same origin policy (CORS) disabled for development, while keeping the existing one open for browsing. I already have tried the CORS plugin but it does not work for local files.

Apparently, this can be done on Windows. Can it be done on OSX (10.8) ?

Best Answer

nohup /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-web-security 2>&1 &

nohup lets you quit Terminal without killing the process.
Arguments are added as normal before the 2>… redirection.

Alternatively, you can try:

open /Applications/Google\ Chrome.app --args --disable-web-security