⛔️ AccessDeniedException 발생
- 프론트와 백엔드 연동 작업을 하던 중 아래와 같은 에러가 발생
- 더 문제는 크롬 개발자 도구에 Network 탭엔 아무런 에러가 없다는 것...😵💫
2025-01-12T18:34:47.162+09:00 ERROR 23113 --- [stard] [io-8080-exec-10] o.a.c.c.C.[.[.[/].[dispatcherServlet] : 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 cause
org.springframework.security.access.AccessDeniedException: Access Denied
...
2025-01-12T18:34:47.164+09:00 ERROR 23113 --- [stard] [io-8080-exec-10] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] threw exception
org.springframework.security.access.AccessDeniedException: Access Denied
...
2025-01-12T18:34:47.165+09:00 ERROR 23113 --- [stard] [io-8080-exec-10] o.a.c.c.C.[Tomcat].[localhost] : Exception Processing [ErrorPage[errorCode=0, location=/error]]
jakarta.servlet.ServletException: Unable to handle the Spring Security Exception because the response is already committed.
🤔 AccessDeniedException 원인
💡 AccessDeniedException 해결