Skip to content

Commit 6e9cb28

Browse files
committed
Explain how to update the Content Security Policy
A recent issue centered on updating the content security policy of the site. This is a common use case for customers deploying the static site as a template to edit.
1 parent 7c47a0a commit 6e9cb28

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ To download the CloudFormation template to deploy on your own, for example by [u
100100

101101
https://s3.amazonaws.com/solution-builders-us-east-1/amazon-cloudfront-secure-static-site/latest/main.yaml
102102

103-
## Update the website content locally before deploying the solution
103+
## Making Changes to the Solution
104+
### Update the website content locally
104105

105106
**To customize the website with your own content before deploying the solution**
106107

@@ -137,6 +138,11 @@ https://s3.amazonaws.com/solution-builders-us-east-1/amazon-cloudfront-secure-st
137138
--capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND \
138139
--parameter-overrides DomainName=<your domain name> SubDomain=<your website subdomain>
139140
```
141+
### Updating the site Content Security Policy
142+
143+
To update the Content Security Policy of the site, update the header values located in `source/secured-headers/index.js`.
144+
Deploy the solution following the steps described above in [Update the website content locally](#update-the-website-content-locally)
145+
140146

141147
## Contributing
142148
Contributions are welcome. Please read the [code of conduct](CODE_OF_CONDUCT.md) and the [contributing guidelines](CONTRIBUTING.md).

0 commit comments

Comments
 (0)