Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save matiascarranza/377167a3fb3cfd3613c692929288c19b to your computer and use it in GitHub Desktop.
Save matiascarranza/377167a3fb3cfd3613c692929288c19b to your computer and use it in GitHub Desktop.
Disable Web Security in Chrome Canary to make cross-domain XHR requests (local servers obvs).
open -a Google\ Chrome\ Canary --args --disable-web-security
on its own does not work anymore. You need to use it with --user-data-dir:
open -a Google\ Chrome\ Canary --args --disable-web-security --user-data-dir=$HOME/profile-folder-name
http://stackoverflow.com/a/34680023/368691
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment