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

Alexander Bilz
17.15.2020 325ebc0a4e712e32682a13fe21a6d12cf33aff25
Merge pull request #8 from msfjarvis/refactor/document-csp

Added an example of strict CSP settings.
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).