리그캣의 개발놀이터

Spring MVC Could not verify the provided CSRF token because your session was not found. 본문

개발 공부/SpringFramework

Spring MVC Could not verify the provided CSRF token because your session was not found.

리그캣 2018. 6. 8. 14:07

Could not verify the provided CSRF token because your session was not found.

라는 에러가 떳다.


스프링 시큐리티를 사용하고 있었을때 떳다...


<security:http auto-config="true">

<security:intercept-url pattern="/**" access="hasRole('ROLE_ADMIN')" /><!-- 회원 목록은 admin만 확인 가능하게 했음 -->

<security:csrf disabled = "true" /> 

</security:http>


<security:csrf disabled = "true" /> 


위와 같이 csrf를 disabled로 설정해주어야 한다.

Comments