mirror of https://github.com/lxndrblz/anatole.git

Harsh Shandilya
17.07.2020 78d58d6a2275fb12a9c9074104ab10adcbc9792a
README: document the CSP compliance aspect

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
1 files modified
17 ■■■■■ changed files
README.md 17 ●●●●● patch | view | raw | blame | history
README.md
@@ -97,6 +97,23 @@
customCss = ["css/custom1.css", "css/custom2.css"]
```
### Content Security Policy
The theme is compliant with most strict CSP policies out of the box. A sample CSP for an Anatole-based site would look something like this:
```
Content-Security-Policy "
  base-uri 'self';
  connect-src 'self';
  default-src 'self';
  frame-ancestors 'none';
  font-src 'self' stackpath.bootstrapcdn.com;
  img-src 'self';
  object-src 'none';
  script-src 'self';
  style-src 'self' stackpath.bootstrapcdn.com;
"
```
## License
Anatole is licensed under the [MIT license](https://github.com/lxndrblz/anatole/blob/master/LICENSE).