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

  1. To access local files as a URL:
  2. Open terminal
  3. Type: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-file-access-from-files