Skip to content

Instantly share code, notes, and snippets.

View anubhavsrivastava's full-sized avatar

Anubhav Srivastava anubhavsrivastava

View GitHub Profile
@anubhavsrivastava
anubhavsrivastava / Chrome
Created March 12, 2020 13:15
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
for i in */; do zip -r "${i%/}.zip" "$i"; done