Consider two backend servers:
When accessing these servers directly, they naturally have independent
localStorage objects, since their origins are different; in this case the hostnames differ.
When I place these servers behind a reverse-proxy, they are accessed as follows:
To slightly complicate the picture, I have a front-end page on the
This front-end page lists the servers as hotlinks using HTML similar to:
<a href="https://proxy.example.com/server1/" target="_blank">Server1</a> <a href="https://proxy.example.com/server2/" target="_blank">Server2</a>
Now, each of the servers
server2 all pass the
same-origin test, since they each have
origin=https://proxy.example.com:443. Consequently, the
localStorage object is shared among them and this sharing is confusing the apps on
Is there a way to disable sharing of
server2 in this configuration?