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 年前檢視次數 1495 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南