Commit e68b8c1
docs: Document Content Security Policy requirements
Add a CSP subsection to the web UI README documenting the policy the
UI works under after the Tier 2 changes (vendored deps, no inline
scripts, no inline JSON data blocks):
default-src 'self';
script-src 'self' 'unsafe-eval';
style-src 'self';
connect-src 'self';
img-src 'self' data:;
Two notable properties:
- No external CDN allowlist needed — Pico/HTMX/Alpine are all vendored.
- 'unsafe-inline' is not required for script-src — all JS is in
external .js files now.
The only relaxation we still need is 'unsafe-eval' because Alpine.js
compiles x-data / x-show / x-text expressions with new Function(...).
A follow-up PR can migrate to the alpinejs-csp build to drop that
requirement; this README note flags the dependency explicitly so users
deploying behind strict CSP know what to allow.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent dcea5a3 commit e68b8c1
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
778 | 794 | | |
779 | 795 | | |
780 | 796 | | |
| |||
0 commit comments