[error] Spring Security 403 Forbidden 에러

KBK·2023년 8월 18일

error 해결

목록 보기
7/7


로그인 후 CREATE 기능을 실행했더니 해당 오류가 발생했다.

해결방법

Spring Security는 기본적으로 csrf 공격에 대한 방지를 수행한다. 이를 해당 기능을 비활성화함으로써 403 Forbidden 에러는 해결할 수 있었다.

httpSecurity
	.csrf().disable()
    

참고
https://velog.io/@minnseong/Spring-Security-403-Forbidden-%EC%97%90%EB%9F%AC

profile
백엔드 공부, 기록

1개의 댓글

comment-user-thumbnail
2023년 8월 18일

개발자로서 배울 점이 많은 글이었습니다. 감사합니다.

답글 달기