r5kkkq
Last Updated: February 25, 2016
·
2.963K
· jdlich

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