Skip to content
Discussion options

You must be logged in to vote

OK. After doing some additional research on this I think I figured it out. The idea is dont' use CloudFrontWebDistribution, just use a Distribution. If you do that, you have a lot more options you can set, including one named responseHeadersPolicy, which does exactly what I wanted.

I answered my own question, but I'm going to leave this here in case anybody else has trouble figuring it out.

It's probably worth noting this that I found on StackOverflow:

The AWS CloudFrontWebDistribution is the original method for working with CloudFront distributions. But now, they had implemented a new method that is provided by Distribution. You can use both CloudFrontWebDistribution as well as Distribu…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wz2b
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant