Two of my web applications are built in Java using Spring Security. Each application has its own WAR file and is deployed on a separate context:
localhost:8080/my-app1
localhost:8080/my-app2
However, when attempting to make an AJAX call from my-app1
to a controller in my-app2
, I encounter an error stating that my session has expired. This issue arises because the user is authenticated in my-app1
but not in my-app2
.
Are there any possible workarounds for this scenario?