diff --git a/index.html b/index.html index a7acd634..845f565f 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,12 @@ Content-Security-Policy: defense-in-depth against XSS. The critical directive is script-src, which is strict — only same-origin scripts, the hash of the inline theme-bootstrap below, and the nostr-tools CDN - fallbacks (js/nostrToolsBootstrap.js). No 'unsafe-inline'/'unsafe-eval' - (verified: no bundle uses eval/Function/wasm). This blocks injected + fallbacks (js/nostrToolsBootstrap.js). No 'unsafe-inline'/'unsafe-eval'. + 'wasm-unsafe-eval' IS required: BitLogin's crypto worker compiles an + Argon2id WASM module, and a script-src without it blocks + WebAssembly.compile and breaks every BitLogin password flow. That + keyword permits WASM compilation only — JS eval stays blocked. This + blocks injected script and object elements, inline handlers (none exist), and base-tag hijack, so an injected payload cannot execute and read the in-memory storage master key / signer / DM plaintext. connect/img/media stay broad @@ -19,7 +23,7 @@ -->