CloudFront: InvalidHeadersForS3OriginException in Edit Behavior

0

Hi

I just got this error:

InvalidHeadersForS3OriginException: Your request contains forwarded Header Name Host that is not allowed by S3

I have had this header forwarded for months on multiple distributions (and update them a lot previously), this error just appeared today when I tried to update a distribution.

Now I can't update the distributions, remove the Host header(or all of them) or just save without modifications.
I had this exception on a behavior that does not forwards the Host header (but the sibling behaviors do contain it)

Have you seen this issue as well?

Thank you!

asked 3 years ago367 views
1 Answer
0

I just end up removing the Host header (using the API because I can't over the UI) and adding a viewer request handler to forward the X-Forwarded-Host header

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions