프로젝트 진행 간 발생한 403에러
Get요청은 잘 보내지는게 확인되나, Post요청 시 해당 에러가 떴다
아래는 에러 발생 당시의 내 코드
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/", "/**")
.permitAll();
super.configure(http);
}
해결방법은
http.csrf().disable();
만 붙여주면 간단히 해결된다 😂
@Override
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable();
http.authorizeRequests()
.antMatchers("/", "/**")
.permitAll();
super.configure(http);
}
post요청도 제대로 가는것을 확인할 수 있었다