From 5194643571667957e7118a0df25b351a09a8607b Mon Sep 17 00:00:00 2001 From: midzelis Date: Sat, 28 Feb 2026 20:00:47 +0000 Subject: [PATCH] feat: enable SvelteKit CSP policy with hash-based inline script/style protection --- misc/update-csp-hashes.mjs | 72 ++++++++++++++++++++++++++++++++++++++ web/svelte.config.js | 25 +++++++++++++ 2 files changed, 97 insertions(+) create mode 100755 misc/update-csp-hashes.mjs diff --git a/misc/update-csp-hashes.mjs b/misc/update-csp-hashes.mjs new file mode 100755 index 0000000000..a3758a9bcc --- /dev/null +++ b/misc/update-csp-hashes.mjs @@ -0,0 +1,72 @@ +#!/usr/bin/env node + +/** + * Computes SHA-256 hashes for inline