From dbc0fd52a8497c5002e8311eb1728050a4e97c7a Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Fri, 30 Oct 2026 08:42:39 +0100 Subject: web: ship a Content-Security-Policy as meta tag Self-contained hardening, no server config required: default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; img-src 'self' blob: data:; connect-src 'self' blob: data:; style-src 'self' 'unsafe-inline' - script-src needs 'wasm-unsafe-eval' for WebAssembly compilation (the scoped exception; plain 'unsafe-eval' stays forbidden) and no inline script is allowed, so the module loader moved from an inline + diff --git a/crates/wipfel/www/loader.js b/crates/wipfel/www/loader.js new file mode 100644 index 0000000..8880478 --- /dev/null +++ b/crates/wipfel/www/loader.js @@ -0,0 +1,4 @@ +// External loader so the page needs no inline + diff --git a/dist/wipfel/loader.js b/dist/wipfel/loader.js new file mode 100644 index 0000000..8880478 --- /dev/null +++ b/dist/wipfel/loader.js @@ -0,0 +1,4 @@ +// External loader so the page needs no inline