Skip to content

Commit a1f6e2b

Browse files
nbudinclaude
andcommitted
Fix cookie_behavior and query_string_behavior values in forward_all policy
allViewer is only valid for header_behavior; the correct value for cookies and query strings in origin request policies is "all". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9a62928 commit a1f6e2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • terraform/modules/cloudfront_intercode

terraform/modules/cloudfront_intercode/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ locals {
2929
resource "aws_cloudfront_origin_request_policy" "forward_all" {
3030
name = "${var.name}-forward-all"
3131

32-
cookies_config { cookie_behavior = "allViewer" }
33-
query_strings_config { query_string_behavior = "allViewer" }
32+
cookies_config { cookie_behavior = "all" }
33+
query_strings_config { query_string_behavior = "all" }
3434
headers_config { header_behavior = "allViewer" }
3535
}
3636

0 commit comments

Comments
 (0)