From f5de81719f5082e20d029dad4af48eac4350fddb Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 25 Feb 2026 07:32:19 +0000 Subject: [PATCH] Add Content Security Policy (CSP) - Configure `kit.csp` in `svelte.config.js` with `mode: 'hash'`. - Define strict directives for scripts, styles, images, connections, and frames. - Move `%sveltekit.head%` to `
` in `src/app.html`. - Move inline analytics script to `static/gtag.js`. - Clean up unused imports in `src/routes/privacy/+page.svelte`. Co-authored-by: Randomblock1 <19873803+Randomblock1@users.noreply.github.com> --- src/app.html | 2 +- src/lib/Analytics.svelte | 11 +--------- src/routes/+layout.svelte | 3 +-- src/routes/install/+page.svelte | 5 ++++- src/routes/privacy/+page.svelte | 4 ---- static/gtag.js | 6 ++++++ svelte.config.js | 36 +++++++++++++++++++++++++++++++++ 7 files changed, 49 insertions(+), 18 deletions(-) create mode 100644 static/gtag.js diff --git a/src/app.html b/src/app.html index f850d61..7272712 100644 --- a/src/app.html +++ b/src/app.html @@ -8,9 +8,9 @@ + %sveltekit.head% - %sveltekit.head%