How to set the allow-file-access-from-files flag option in Google Chrome on the Mac Operating System
When developing and testing your applications, the problem is that browsers have security restrictions against running files like an HTML files or JavaScript from local files. Fortunately, this can be bypassed by enabling the –allow-file-access-from-files flag option on the Mac Operating System. Here are the step-by-step instructions.
Step by Step Instructions
Via Command Line
- To access local files as a URL:
- Open terminal
- Type:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-file-access-from-files