Commit 6e7903f
committed
docs/deployment: correct CSP/SRI interaction notes
Two technically incorrect claims in the v0.3.6 deployment doc SRI
section, surfaced by the post-implementation security review:
1. 'unsafe-inline' has no effect on the external bootstrap script
(the directive governs inline script bodies only). Removed.
2. 'strict-dynamic' does not auto-trust parser-inserted tags - it
only extends trust transitively from an already-trusted script.
The injected bootstrap is a parser-inserted external script;
under 'strict-dynamic' it needs a matching nonce or hash-source
to be permitted.
Rewrote the three-case list to: same-origin ('self'),
'strict-dynamic' (needs nonce or hash-pin), and explicit sha384-X
hash-source (one string serves both CSP source-list and SRI).1 parent dc47764 commit 6e7903f
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| |||
0 commit comments