(cloudfront): Add support for ResponseHeadersPolicy
See original GitHub issueDescription
Add support for ResponseHeadersPolicy as described in the following docs:
- https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/creating-response-headers-policies.html
- https://aws.amazon.com/about-aws/whats-new/2021/11/amazon-cloudfront-supports-cors-security-custom-http-response-headers/
Use Case
We need to be able to configure response CORS, headers and security policies without using cloudfront functions or Lambda@edge.
Proposed Solution
The ResponseHeadersPolicy
should be available as a new construct under the @aws-cdk/aws-cloudfront
construct library.
Other information
No response
Acknowledge
- I may be able to implement this feature request
- This feature might incur a breaking change
Issue Analytics
- State:
- Created 2 years ago
- Reactions:23
- Comments:18 (11 by maintainers)
Top Results From Across the Web
AWS::CloudFront::ResponseHeadersPolicy
A response headers policy contains information about a set of HTTP response headers and their values. CloudFront adds the headers in the policy...
Read more >aws.cloudfront.ResponseHeadersPolicy - Pulumi
Provides a CloudFront response headers policy resource. A response headers policy contains information about a set of HTTP response headers and their values....
Read more >Unable to set ResponseHeadersPolicyId via CloudFormation
edit: i add part of my configuration as example: CloudFrontDistribution: Type: AWS::CloudFront::Distribution DependsOn: [ CloudFrontCustomNoCachePolicy ] ...
Read more >aws_cloudfront_response_head...
Provides a CloudFront response headers policy resource. ... When it's attached to a cache behavior, CloudFront adds the headers in the policy to...
Read more >Using the managed response headers policies - 亚马逊云科技
With a CloudFront response headers policy, you can specify the HTTP headers that Amazon CloudFront adds to responses that it sends to viewers....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hot off the press: https://twitter.com/cfnupdates/status/1456452444406358019?s=21
edit: And here is the actual link to the cfn docs. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.html
@robertd Oh cool, it’s 1.134 now latest? Hope soon will be 1.135. We will wait then. Thanks.