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!

已提问 3 年前373 查看次数
1 回答
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

已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则