Skip to content

Instantly share code, notes, and snippets.

@toddmotto
Created September 17, 2013 15:56
Show Gist options
  • Save toddmotto/6596373 to your computer and use it in GitHub Desktop.
Save toddmotto/6596373 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
@gajus
Copy link

gajus commented Feb 5, 2016

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