Skip to content

Commit 1af0cd2

Browse files
Update instructions for modifying security headers (#74)
Update instructions for modifying security headers This solution now uses CloudFront Response headers, and these can be edited in the cloudfront-site.yaml template. See issue [73](#73
1 parent bd2d4b3 commit 1af0cd2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ https://s3.amazonaws.com/solution-builders-us-east-1/amazon-cloudfront-secure-st
162162
--parameter-overrides DomainName=<your domain name> SubDomain=<your website subdomain> HostedZoneId=<hosted zone id> CreateApex=yes
163163
```
164164

165-
### Updating the site Content Security Policy
165+
### Updating the site Response Headers
166166

167-
To change the Content Security Policy of the site:
167+
To change the Response Header Policy of the site:
168168

169-
1. Make your changes to the header values by editing `source/secured-headers/index.js`.
170-
1. Deploy the solution by following the steps in [Update the website content locally](#update-the-website-content-locally)
169+
1. Make your changes by editing ResponseHeadersPolicy in `templates/cloudfront-site.yaml`. Here you can modify any of the headers for Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options, X-Frame-Options, X-XSS-Protection, and Referrer-Policy.
170+
2. Deploy the solution by following the steps in [Update the website content locally](#update-the-website-content-locally)
171171

172172
## Contributing
173173

0 commit comments

Comments
 (0)