Skip to content

Commit f0612f0

Browse files
authored
Merge pull request #21 from aws-samples/docs/edit-content-security-policy
Explain how to update the Content Security Policy
2 parents 7c47a0a + 4f35e4b commit f0612f0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

README.md

Lines changed: 9 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+
## Customizing 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,13 @@ 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 change the Content Security Policy of the site:
144+
145+
1. Make your changes to the header values by editing `source/secured-headers/index.js`.
146+
1. Deploy the solution by following the steps in [Update the website content locally](#update-the-website-content-locally)
147+
140148

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

0 commit comments

Comments
 (0)