That flag is dangerous!! Leaves your file system open for access. Documents originating from anywhere, local or web, should not, by default, have any access to local file:/// resources.
Much better solution is to run a little http server locally.
--- For Windows ---
The easiest is to install http-server globally using node's package manager:
npm install -g http-server
Then simply run
http-server in any of your project directories:
Starting up http-server, serving ./
Hit CTRL-C to stop the server
Or as prusswan suggested, you can also install Python under windows, and follow the instructions below.
--- For Linux ---
Since Python is usually available in most linux distributions, just run
python -m SimpleHTTPServer in your project directory, and you can load your page on
In Python 3 the
SimpleHTTPServer module has been merged into
http.server, so the new command is
python3 -m http.server.
Easy, and no security risk of accidentally leaving your browser open vulnerable.