How to configure CloudFront using CloudFormation to set the 'Headers' property in 'ForwardedValues' to 'all'?

前端 未结 2 424
面向向阳花
面向向阳花 2021-01-14 01:46

I am setting up CloudFront using CloudFormation, but I need to configure the Headers property of the ForwardedValues property. It should be setup in such a way that

2条回答
  •  鱼传尺愫
    2021-01-14 02:28

    Using Yaml:

        Headers: ["*"]
    

    An example inside the "ForwardedValues" element for some context:

        ForwardedValues:
            Cookies:
              Forward: all
            Headers: ["*"]
            QueryString: true
    

    Please note that this might lead to poor performance (allegedly) due to the caching of "Date" headers as documented [here]

提交回复
热议问题