🐶 에러
Invalid CSRF Token 'null' was found on the request parameter '_csrf' or header 'X-CSRF-TOKEN
🐶 내용
Spring Security는 form 전송 시 csrf 공격 방어를 하기 위해 token 값을 보내는 것을
규정하고 있음. (token값을 못 받아서 발생하는 에러)
🐶 조치
※ 아래 소스 추가
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
'개발 > Spring' 카테고리의 다른 글
| (Spring) Spotify API 설정 (searchTracks) (1) | 2025.04.18 |
|---|---|
| (WARN) Invocation of destroy method 'close' failed on bean with name 'sqlSession' (2) | 2024.11.24 |