-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AccessDeniedException after migration to Spring Boot 3.0.x . In continuation to https://github.com/spring-projects/spring-security/issues/12758 #13735
Comments
Error Logs : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Unable to handle the Spring Security Exception because the response is already committed.] with root causeorg.springframework.security.access.AccessDeniedException: Access Denied |
Hi, @kotharikrati. Can you provide a minimal, reproducible sample so we can have a better idea of what is happening? |
Hi @marcusdacoregio . Thank you! |
Thanks! |
@kotharikrati which one helped you to fix it ? |
I am using java with spring boot 3.0.
Here is my SecurityFilterChain:
@bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception{
// .securityContext((securityContext -> securityContext.securityContextRepository(new RequestAttributeSecurityContextRepository())))
.build();
}
@requiredargsconstructor
@slf4j
public class JwtAuthenticationFilter extends OncePerRequestFilter {
}
Still I am getting AccessDenied error while downloading a file using StreamingResponseBody.
The text was updated successfully, but these errors were encountered: