강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

득윤님의 프로필 이미지
득윤

작성한 질문수

Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)

API Gateway - Route 처리

An expected CSRF token cannot be found 해결

작성

·

2.4K

1

PostMan 에서 API 요청시
 
403 unAuthorized,
An expected CSRF token cannot be found가 응답으로 오는 경우
 
해당 코드 api gateway 프로젝트에 추가해 주면 해결 됩니다.
 
@EnableWebFluxSecurity
public class SecurityConfig {

@Bean
public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) {

return http.csrf()
.disable()
.build();
}
}

답변 1

0

Dowon Lee님의 프로필 이미지
Dowon Lee
지식공유자

안녕하세요, 이도원입니다. 

정보 공유해 주셔서 감사합니다. 

득윤님의 프로필 이미지
득윤

작성한 질문수

질문하기