CSRF 관련
- csrf exception handing
https://stackoverflow.com/questions/32446903/what-is-the-best-way-to-handle-invalid-csrf-token-found-in-the-request-when-sess
- csrf 가 활성화 되어 있으면
logout url을 POST로 호출해야 함
- 인증, 인가, CSRF, Test
https://dongdd.tistory.com/m/175
https://reiphiel.tistory.com/m/entry/spring-security-csrf
https://cubenuri.tistory.com/m/378
- cookieCsrfTokenRepository
withHttpOnlyFalse 설정은
javascript에서 직접 쿠키 접근시 설정
javascript에서 직접 쿠키 접근이 필요하지 않다면
withHttpOnlyFalse설정 필요 없음
https://stackoverflow.com/questions/62648098/what-does-cookie-csrftokenrepository-withhttponlyfalse-do-and-when-to-use-it
- csrf token 변수명 바꾸기
https://cnpnote.tistory.com/entry/SPRING-%EC%8A%A4%ED%94%84%EB%A7%81-csrf-%ED%86%A0%ED%81%B0-%EB%B3%80%EC%88%98%EC%9D%98-%EC%9D%B4%EB%A6%84-%EB%B0%94%EA%BE%B8%EA%B8%B0
- CSRF With Stateless REST API
https://www.baeldung.com/csrf-stateless-rest-api