I have two web applications developed in Java using Spring Security. Each application has it's own WAR and therefore is deployed on it's own context:
localhost:8080/my-app1
localhost:8080/my-app2
Now when I try to make an AJAX call on my-app1
to a controller that is on my-app2
, I get an error message saying that my session is expired. Which makes sense, after all the user is authenticated on my-app1
but not on my-app2
.
Is there any workaround for that?