Created
December 31, 2011 16:06
-
-
Save JeffreyWay/1544440 to your computer and use it in GitHub Desktop.
Local XHR in Chrome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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