From 33f9d9a5be8c6d382bf4cdbcb8a6ef26ebf60d93 Mon Sep 17 00:00:00 2001 From: JoshuaLicense Date: Fri, 2 Aug 2024 15:29:19 +0100 Subject: [PATCH] fix(terraform): adjust `response_headers_policy_name` for CORS requests --- infra/terraform/modules/service/cdn.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/terraform/modules/service/cdn.tf b/infra/terraform/modules/service/cdn.tf index 1d9c1a9615..a2b6d5c7c7 100644 --- a/infra/terraform/modules/service/cdn.tf +++ b/infra/terraform/modules/service/cdn.tf @@ -131,7 +131,7 @@ module "cloudfront" { cache_policy_name = "Managed-CachingOptimized" origin_request_policy_name = "Managed-UserAgentRefererHeaders" - response_headers_policy_name = "Managed-SecurityHeadersPolicy" + response_headers_policy_name = "Managed-CORS-with-preflight-and-SecurityHeadersPolicy" function_association = { viewer-request = {