Inflearn brand logo image

Inflearn Community Q&A

insang's profile image
insang

asked

Microservice Application (MSA) Development with Spring Cloud

Adding AuthenticationFilter

Api gateway 필터

Written on

·

558

0

- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요!
- 먼저 Api gateway 필터 설정에서 remove request header=Cookie를 하는 이유가 무엇인가요?
gatewaymsafilterKafkaJPAarchitecturespring-cloudspring-boot

Answer 1

0

kenneth님의 프로필 이미지
kenneth
Instructor

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

remove request header를 해 주는 목적은 요청시 특정 헤더 값을 제거하거나 사용하지 않기 위함입니다. 설정에 있는 것처럼 Cookie라는 정보를 Request Header에서 제외하거 전달하기 위해 설정하시면 됩니다. Postman이라는 프로그램으로 어떤 API(Http GET METHOD)호출 할 때, 추가 설정을 하지 않아도 아래와 같은 Header가 같이 전달됩니다. 이러한 부분을 정달하지 않기 위해 사용한다고 보시면 좋을 것 같습니다. 

감사합니다. 

insang's profile image
insang

asked

Ask a question