Local AJAX calls in Chrome
If you try to use AJAX on local files in Chrome, you may run into the following error:
Origin null is not allowed by Access-Control-Allow-Origin
To get around this, quit and reopen Chrome using the command line while passing in the --allow-file-access-from-files
flag:
open -a "Google Chrome" --args --allow-file-access-from-files
Written by Jacob Lichner
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Chrome
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#