How to set Cloudfront custom headers

0

Customer have a question on Cloudfront custom headers. They we need to set a custom header "X-Src-Host" that gets passed to Origin and set the value of it to the the "Host" value - as the CF property will have multiple cnames associated.

I reckon they have to use a lambda function to do this ? Is there any other way of achieving this objective ?

Saju_S
질문됨 4년 전1450회 조회
1개 답변
1
수락된 답변

Yes, static values can be set in the Origin Headers section of a configuration. But in order to use dynamic or computed values, like values from other headers for example, would require Lambda@Edge to set.

AWS
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠