Skip to content

Instantly share code, notes, and snippets.

@WideSolution
Forked from JeffreyWay/gist:1544440
Created March 13, 2012 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WideSolution/2027859 to your computer and use it in GitHub Desktop.
Save WideSolution/2027859 to your computer and use it in GitHub Desktop.
BASH: Local XHR in Chrome
# Add to ~/.bash_profile
function chrome() {
open $@ --args --allow-file-access-from-files
}
# Usage - chrome index.html
# now you don't have to worry about those pesky local XHR issues in Chrome.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment