From 0645045df03c510c6665edd4e51878fa4cf7b3b1 Mon Sep 17 00:00:00 2001 From: benmartin-coforma Date: Tue, 31 Oct 2023 11:21:11 -0600 Subject: [PATCH 1/2] Whitespace change --- services/ui/serverless.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/ui/serverless.yml b/services/ui/serverless.yml index 47851efa7..f7cc08560 100644 --- a/services/ui/serverless.yml +++ b/services/ui/serverless.yml @@ -243,7 +243,7 @@ resources: var response = event.response; var headers = response.headers; headers['strict-transport-security'] = { value: 'max-age=63072000; includeSubdomains; preload'}; - headers['x-content-type-options'] = { value: 'nosniff' }; + headers['x-content-type-options'] = { value: 'nosniff' }; headers['x-xss-protection'] = { value: '0' }; headers["content-security-policy"] = { value: "default-src 'self'; img-src 'self' data: https://www.google-analytics.com; script-src 'self' https://www.google-analytics.com https://ssl.google-analytics.com https://www.googletagmanager.com tags.tiqcdn.com tags.tiqcdn.cn tags-eu.tiqcdn.com https://*.adoberesources.net 'unsafe-inline'; style-src 'self' 'unsafe-inline'; connect-src https://*.amazonaws.com/ https://*.amazoncognito.com https://www.google-analytics.com https://*.launchdarkly.us https://adobe-ep.cms.gov https://adobedc.demdex.net; frame-ancestors 'none'; object-src 'none'"}; headers['x-frame-options'] = { value: 'DENY' }; From 6704572d75ca4c0736bb48da052e6fa6e6450285 Mon Sep 17 00:00:00 2001 From: benmartin-coforma Date: Tue, 31 Oct 2023 16:37:16 -0600 Subject: [PATCH 2/2] Rename header function --- services/ui/serverless.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/ui/serverless.yml b/services/ui/serverless.yml index f7cc08560..2177bb875 100644 --- a/services/ui/serverless.yml +++ b/services/ui/serverless.yml @@ -207,7 +207,7 @@ resources: ViewerProtocolPolicy: redirect-to-https FunctionAssociations: - EventType: viewer-response - FunctionARN: !GetAtt HeadersCloudfrontFunction.FunctionMetadata.FunctionARN + FunctionARN: !GetAtt RENAMEDHeadersCloudfrontFunction.FunctionMetadata.FunctionARN ViewerCertificate: Fn::If: - CreateCustomCloudFrontDomain @@ -234,7 +234,7 @@ resources: HostedZoneId: Z2FDTNDATAQYW2 EvaluateTargetHealth: false Type: A - HeadersCloudfrontFunction: + RENAMEDHeadersCloudfrontFunction: Type: AWS::CloudFront::Function Properties: AutoPublish: true