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!

posta 3 anni fa373 visualizzazioni
1 Risposta
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

con risposta 3 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande