Skip to content

Revert "CCM-5340: Security header changes" #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,15 @@ resource "aws_cloudfront_distribution" "main" {
}

lambda_function_association {
event_type = "viewer-response"
lambda_arn = module.lambda_rewrite_viewer_trailing_slashes.function_qualified_arn
event_type = "viewer-response"
lambda_arn = module.lambda_rewrite_viewer_trailing_slashes.function_qualified_arn
}

viewer_protocol_policy = "redirect-to-https"
min_ttl = 0
default_ttl = 3600
max_ttl = 86400
compress = true

response_headers_policy_id = aws_cloudfront_response_headers_policy.security_headers.id
}

# Amplify microservice routing
Expand Down Expand Up @@ -152,8 +150,6 @@ resource "aws_cloudfront_distribution" "main" {
target_origin_id = "${local.csi}-${ordered_cache_behavior.value.service_prefix}"
viewer_protocol_policy = "redirect-to-https"
compress = true

response_headers_policy_id = aws_cloudfront_response_headers_policy.security_headers.id
}
}

Expand Down Expand Up @@ -186,8 +182,6 @@ resource "aws_cloudfront_distribution" "main" {
target_origin_id = "${local.csi}-${ordered_cache_behavior.value.service_prefix}"
viewer_protocol_policy = "redirect-to-https"
compress = true

response_headers_policy_id = aws_cloudfront_response_headers_policy.security_headers.id
}
}
}
Expand Down

This file was deleted.

Loading