跳至內容

CloudFront function not executed when response is delivered via HTTP3

0

I have a CloudFront function that sets the cache control and strict transport security headers. It works when the response is delivered via HTTP1 and 2 but since I enabled HTTP3 both chrome and Firefox report that the headers I was expecting are not present in the response.

Here's my infrastructure as code. Here's the test procedure

Is here the right place to report this bug?

已提問 3 年前檢視次數 479 次
1 個回答
1
已接受的答案

In my tests I can see headers being added by CloudFront function even after upgrade to HTTP3, so it requires more deep investigation why it doesn't work for you. I'd suggest to create a Support ticket. However, I would also suggest to consider using Response Headers With this feature you don't need to use CloudFront Functions to insert headers such as Cache-Control and Strict-Transport-Security in the response.

AWS
已回答 3 年前
  • My latest test also worked. It must be fixed recently. Thanks for the hints about response headers

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。