You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Start with defaults to avoid unexpected breakage.
72
+
2. Set explicit `ALLOWED_CSS_SOURCES` and `ALLOWED_IMAGE_SOURCES` values for the domains you actually use.
73
+
3. Test key workflows (editor, page display, theme assets, external embeds) and browser console CSP warnings.
74
+
4. Remove unnecessary protocols and hosts over time.
75
+
34
76
## Code Standards
35
77
36
78
We use tools to manage code standards and formatting within the project. If submitting a PR, formatting as per our project standards would help for clarity but don't worry too much about using/understanding these tools as we can always address issues at a later stage when they're picked up by our automated tools.
Copy file name to clipboardExpand all lines: readme.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,7 @@ Big thanks to these companies for supporting the project.
102
102
## 🛠️ Development & Testing
103
103
104
104
Please see our [development docs](dev/docs/development.md) for full details regarding work on the BookStack source code.
105
+
For details on Content Security Policy controls (including image and CSS source options), see the **Content Security Policy Controls** section in the [development docs](dev/docs/development.md).
105
106
106
107
If you're just looking to customize or extend your own BookStack instance, take a look at our [Hacking BookStack documentation page](https://www.bookstackapp.com/docs/admin/hacking-bookstack/) for details on various options to achieve this without altering the BookStack source code.
0 commit comments