From 34aee4d897313cb4e8667b5d8a6c0a96d98db4fc Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Thu, 1 Jan 2026 18:50:04 -0800 Subject: Fix CSP Headers and deployment --- svelte.config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'svelte.config.js') diff --git a/svelte.config.js b/svelte.config.js index efa0e4b..f973307 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -8,12 +8,15 @@ const config = { kit: { adapter: adapter(), + paths: { + base: '' + }, csp: { - mode: 'auto', + mode: 'nonce', directives: { 'script-src': ['self', 'https://hcaptcha.com', 'https://*.hcaptcha.com'], 'frame-src': ['self', 'https://hcaptcha.com', 'https://*.hcaptcha.com'], - 'style-src': ['self', 'https://hcaptcha.com', 'https://*.hcaptcha.com'], + 'style-src': ['self', 'https://hcaptcha.com', 'https://*.hcaptcha.com', 'unsafe-inline'], 'connect-src': ['self', 'https://hcaptcha.com', 'https://*.hcaptcha.com'] } } -- cgit v1.2.3-70-g09d2