question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(cloudfront): Add support for ResponseHeadersPolicy

See original GitHub issue

Description

Add support for ResponseHeadersPolicy as described in the following docs:

  1. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/creating-response-headers-policies.html
  2. 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:closed
  • Created 2 years ago
  • Reactions:23
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
mspolitaevcommented, Dec 9, 2021

@robertd Oh cool, it’s 1.134 now latest? Hope soon will be 1.135. We will wait then. Thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found