Skip to content

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 ?

AWS

asked 6 years ago2.3K views

1 Answer
2
Accepted Answer

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

answered 6 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.