Skip to content

Instantly share code, notes, and snippets.

@JeffreyWay
Created December 31, 2011 16:06
Show Gist options
  • Save JeffreyWay/1544440 to your computer and use it in GitHub Desktop.
Save JeffreyWay/1544440 to your computer and use it in GitHub Desktop.
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