To use of local textures in local development / for copying examples and local use.
( see also Can't run html files in Chrome locally )
I have tried a few things to see what is easiest for beginners.
Web Server for Chrome was running quite well at first and I was already cheering until suddenly the update did not work anymore. I had old versions. It’s a nasty thing to do because you think you’ve made a mistake. And I’m an expert in mistakes!
node.js makes more effort and is a bit cryptic. Can scare off beginners when errors occur.
Manipulation of the security settings in the browser.
The warnings issued are very justified. I would not do that with my work and test browsers. In my scatterbrains I would eventually forget to have the right attitude when I am online. Besides, the switching is annoying.
In the docs: https://threejs.org/docs/index.html#manual/en/introduction/How-to-run-things-locally “You may want to create a separate browser profile / shortcut used just for local development to be safe.”
One could possibly confuse it and still surf with the insecure browser.
This is my idea:
There are many special browsers that you do not need yourself.
For example, if they are based on Firefox, you can set the settings permanently and use the browser only as a local development browser. Because of their different appearance you can not mix up the browsers by mistake.
I have only tried https://www.seamonkey-project.org/releases/2.49.5.
If you set it to offline, the browser remembers this when you restart. You do not have to bother.
Allow local textures:
about:config ( in addressbar ) - click on “Accept the Risk and Continue” ( if is visible ) set privacy.file_unique_origin to false
However, the privacy.file_unique_origin did not exist. This is not a problem:
Right-click - New - Boolean
OK and use false
Now I have my browser window with the development example, my editor.
I save the change and press F5 in the browser. Done, as easy as it was in old times.