Skip to content
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

Whitespace change #11509

Closed
wants to merge 2 commits into from
Closed
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
6 changes: 3 additions & 3 deletions services/ui/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -234,7 +234,7 @@ resources:
HostedZoneId: Z2FDTNDATAQYW2
EvaluateTargetHealth: false
Type: A
HeadersCloudfrontFunction:
RENAMEDHeadersCloudfrontFunction:
Type: AWS::CloudFront::Function
Properties:
AutoPublish: true
Expand All @@ -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' };
Expand Down