Last active
February 13, 2016 13:15
-
-
Save tsur/1ae0800400cf1b2bd63c to your computer and use it in GitHub Desktop.
chrome browser disable CORS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OSX | |
$ open -a Google\ Chrome --args --disable-web-security | |
# Linux | |
$ google-chrome --disable-web-security | |
# Also if you're trying to access local files for dev purposes like AJAX or JSON, you can use this flag too . | |
-–allow-file-access-from-files | |
# Window | |
chrome.exe --disable-web-security | |
# Update: For Chrome 22+ you will be presented with an error message that says: | |
# You are using an unsupported command-line flag: --disable-web-security. Stability and security will suffer. | |
# However you can just ignore that message while developing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment