ajax 403
-
[Spring Security] ajax요청시 403 에러 발생 처리방법Spring 2018. 11. 18. 23:55
Spring Security에서 ajax로 요청을 하게되면 403 에러가 발생한다. 발생한 원인은 CSRF처리를 해주지 않아서 이다. 여기서 처리한 방법은 [특정 requestMethod를 모두 허용해주는 방식]으로 처리하였다. (※ CSRF를 사용하지 않음.) Spring Security 버전마다 약간 씩 처리 방법은 다르다 버전은 3.2.3 사용하였다.123456789101112 org.springframework.security spring-security-web 3.2.3.RELEASE org.springframework.security spring-security-config 3.2.3.RELEASE Colored by Color Scriptercs 4.0이상에서는 csrf 속성에 disable..