Context
For a client, I wrap 3D animations in interactive HTML/CSS/JS mini-apps. As their demands are getting more complex, i would like to use Angular 6 as framework to replace my from-scratch base. Also, they need it to work without Internet access.
Problem
The animations must be open-able locally without an http server. No apache, or anything. My client need it simple: They can at best unzip the project and open the index.html file but installing anything would be too much to ask.
So i ran some tests, and built a "real" angular 6 app i previously designed, which uses internationalization. I figured that opening the index.html file outside of a http server breaks the app with the following error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///assets/i18n/fr.json. (Reason: CORS request not http).[Learn More]
This is because, without an server, CORS requests fail. My contents are not loaded.
References
This post seemed promising but did not help.
Also i thought there was a way to replace file:///assets/i18n/fr.json
with something like ./assets/i18n/fr.json
but i found no explanation in the docs (I might have missed it but it's technical for a backend-dev like me).
So i am trying to search for other workarounds. Any clues?