Skip to content

Commit f6d2d3a

Browse files
v0.4.6
v0.4.6
1 parent 9f9ac38 commit f6d2d3a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

cloudfront.tf

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,16 @@ resource "aws_cloudfront_response_headers_policy" "security" {
158158
override = true
159159
}
160160
content_security_policy {
161-
content_security_policy = "frame-ancestors 'self';default-src 'self';img-src 'self';script-src 'nonce-${random_string.cloudfront_csp_nonce.id}';style-src 'nonce-${random_string.cloudfront_csp_nonce.id}';object-src 'self';"
161+
content_security_policy = <<EOT
162+
"
163+
frame-ancestors 'self';
164+
default-src 'self';
165+
img-src 'self';
166+
script-src 'nonce-${random_string.cloudfront_csp_nonce.id}';
167+
style-src 'nonce-${random_string.cloudfront_csp_nonce.id}';
168+
object-src 'self';
169+
"
170+
EOT
162171
override = true
163172
}
164173
}

0 commit comments

Comments
 (0)