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!

gefragt vor 3 Jahren373 Aufrufe
1 Antwort
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

beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen