I've implemented my own filter for jwt authentication. It works, because with Trace logging enabled i can see that access to "/api/report" endpoint is granted, but then spring says "Securing POST "/error" And after that i get 401 Unauthorized. .requestMatchers("/error").permitAll() fixes this issue, but it isn't a very good solution is it..?
P.S. I use spring-boot-starter-security 3.0.6