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

前端 未结 2 423
面向向阳花
面向向阳花 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]

    0 讨论(0)
  • 2021-01-14 02:32

    This is I see in getdistrinbution config:

    "ForwardedValues": { "Headers": { "Items": [ "*" ]
    

    You can try it to see if this works.

    0 讨论(0)
提交回复
热议问题