How to set the allow-file-access-from-files flag option in Google Chrome

If you have ever tried to develop and test your application in Google Chrome on your local machine you will most possibly face some challenges. It may be an App(Chrome extension development), an AJAX application using jQuery or offline javascript/html applications, you too may have experienced this issue.

Check Out The Solution

The Problem

The Google Chrome browser will not load local file by default due to security reason. The discussion has gone back and forth for the last 7 years and finally there is a reasonable workable solution.

The Solution

( or at least the last best alternative ).
Google Chrome has for a long time provided a list that shows the available switches including their conditions and descriptions. Using the --allow-file-access-from-files option you should be able to run your tests in Google Chrome with no hassles. Here’s how you do it on the various operating systems