How to allow-file-access-from-files in Chrome?

I am using Chrome to test some of my WebGL texture programs. According to the book 'WebGL Programming Guide', if I need to access files from my local disk, I should add the option --allow-file-access-from-files to Chrome.

How do I do that?

Answers


The short answer is DON'T

Open up a shell/terminal/command line and type

cd path/to/htmlfiles
python -m SimpleHTTPServer

Then in your browser to go

http://localhost:8000

If you find it's too slow consider this solution

The reason you don't want to allow file access is allowing it can be used to steal data from your machine. For example, you go to a site and download some webpage. You then view that page locally. With file access on that locally run page can now access all your files AND upload them to a server.


Need Your Help

How to import local image using knitr for markdown

html image markdown figure knitr

I have an externally created png image in a local directory that I'd like to import to a report using knitr. The ultimate target filetype is html. I have no trouble getting my own figures to appear...

Sqoop and MSSQL with window auth on linux fails

sql-server linux apache sqoop

I m using apache sqoop to connect mSSQL server using window authentication but