I have a problem with default behaviour in spring security with authorize requests provided with Java Config.
http .... .authorizeRequests() .antMatchers("/api/test/secured/*").authenticated()
When I do a call to for example
/api/test/secured/user without login (with anonymous user), it returns 403 Forbidden. Is there an easy way to change status to 401 Unauthorized when anonymous user wants to get secured by