Skip to content

Commit 2042c05

Browse files
committed
Revert "feat(csp): add CloudFront response headers policy with Content-Security-Policy"
This reverts commit 83d546e.
1 parent 8de7396 commit 2042c05

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

terraform/website/main.tf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,6 @@ resource "aws_s3_bucket_website_configuration" "bucket" {
9090
])
9191
}
9292

93-
resource "aws_cloudfront_response_headers_policy" "csp" {
94-
name = "colorcop-csp-policy"
95-
96-
security_headers_config {
97-
content_security_policy {
98-
override = true
99-
content_security_policy = "default-src 'self'; script-src 'self' 'unsafe-eval' https://pagead2.googlesyndication.com https://googleads.g.doubleclick.net https://cdnjs.cloudflare.com; style-src 'self' https://cdnjs.cloudflare.com 'unsafe-inline'; img-src 'self' data: https://pagead2.googlesyndication.com https://googleads.g.doubleclick.net;"
100-
}
101-
}
102-
}
103-
10493
resource "aws_cloudfront_distribution" "distribution" {
10594
aliases = [local.www_domain, var.domain]
10695
comment = "Cloudfront distribution for ${var.domain}"

0 commit comments

Comments
 (0)