Starting Chrome on OSX without web security features

By mstolte No comments

In order to start Chrome on OSX CLI you can do the following:

open -a "Google Chrome"

Now to disable the security features like XSS you can run it like this:

WARNING: only do this for dev purposes, it opens up your browser for a lot of potential hacks.

open -a "Google Chrome" --args --disable-web-security --user-data-dir=/users/YOURUSER/tmpchrome

Note that the data-dir needs to exist and you have to provide this in order to be able to use the ‘disable web security’ option.

thanks to this stackoverflow post and the Chrome documentation.

Leave a Reply