Sep 13, 2013

[Solved, Mac OS X] Disable web security in Chrome

Posted Sep 13, 2013
Execute this in terminal:


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

I use the above settings when testing Backbone JS + Require JS + Underscore JS + Text Plugin to read files from file system. Google Chrome won't allow it unless the above parameter is set. This is also related to disabling Chrome's Same Origin Policy.

1 comment:

  1. Hi,

    Thanks for the solution, worked great !
    But do you have any idea on how to do this permanently (aka without using terminal on each launch) ? I know Windows allow to add some args so each time you launch app it uses those args but how to do it with Mac OSX ?



    Thanks !

    ReplyDelete