Hey guys, I have such setup :
Two front-end applications running on 4200 and 4201
Two back-end applications running on 8080 and 8082.
The problem is that there's a need to interact with a page on 4201 that involves moving to other hostname to work at - but it results in dropping to a login page once you hit 4200 - because local storage, which holds auth token, gets wiped.
Tried to make a workaround with nginx which acts as a reverse proxy serving on 8010 port.
At this point, application is accessible but the problem is still same - interacting with a page on 8010 still forwards on 4200, resulting in exact same issue (the idea was to mock a 4200 port with 8010 to have same host).
Tried to intercept a url on-a-fly to swap ports - but the nature of the client redirect does not allow to do it either.
What are the possible ways to cope with it to achieve two front-ends work under the same host to avoid wipe ?
This works on a cloud machine with DNS configured (no localstorage wipe) - but on local it's not possible.