Skip to content

Instantly share code, notes, and snippets.

@anubhavsrivastava
Created March 12, 2020 13:15
Show Gist options
  • Save anubhavsrivastava/8612ce1641cbdffa015e00f98c2e4f12 to your computer and use it in GitHub Desktop.
Save anubhavsrivastava/8612ce1641cbdffa015e00f98c2e4f12 to your computer and use it in GitHub Desktop.
Disable web security to make CORS request
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