Johnny.sh

Run chrome with CORS disabled for development purposes

Sometimes need to turn off cors in chrome for debugging purposes. Exit chrome, then run this line:

$ open -a Google\ Chrome --args --disable-web-security --user-data-dir={your chrome user data folder}

It was a bit difficult to find the chrome user data folder. Here is a list of default locations.

Mine was at /Users/john/Library/Application Support/Google/Chrome

Only for debugging purposes! Make sure to close chrome and restart after using this.

Last modified: June 02, 2020
/about
/uses
/notes
/talks
/projects
/podcasts
/reading-list
/spotify
© 2024