I\'m using a login form for a small project in Spring but I have a small problem which is that every time I log in using a sign in form I get an error redirection.
T
In my case there were some other requests that caused this to happen (one of them was 404 when loading css resource). After fixing them this error disappeared.
EDIT
To resolve the issue properly you should exclude /error page from spring security filters. Check Spring security redirects to page with status code 999 for details