Relative Content

Tag Archive for javaangularjsspring-bootspring-security

Issue with maintaining a logged-in in Spring Security

I’m facing an issue with maintaining authentication across subsequent requests in Spring Security. My frontend application is built using AngularJS. When I configure basicHttp in SecurityConfig and log in via the browser’s login dialog, everything works fine—every subsequent request returns a status of 200. However, I want to implement a custom login page and endpoint. To achieve this, I also set SessionCreationPolicy.IF_REQUIRED to create a session and return the JSESSIONID, which is then sent with subsequent requests after login, but this doesn’t work as I’m getting 403 responses.