How to set Cloudfront custom headers


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 ?

asked 2 years ago482 views
1 Answer
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.

answered 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.

Guidelines for Answering Questions