I have a JavaScript Progressive Web App on a dedicated domain. I'd like to host it on a different static server that only gives me write access to a domain.example/~my_username/*. More importantly, the server has many users and I don't want other users' JavaScript get information stored in my local-forage, since it contains keys that should not be compromised.
Is there a method in local-forage (that uses indexed-db) that allows me to set a path, much like when using cookies?
Moreover, if this is not possible, is there any other storage medium on the client side that would allow me to store encryption keys for local-forage parameters?
Possibly related to https://stackoverflow.com/questions/25013643/is-it-possible-to-use-localstorage-with-context-per-path-like-cookie
and https://stackoverflow.com/questions/9742395/scope-of-sessionstorage-and-localstorage