From cfa5a950f1437094cc6930a99119875bc2736424 Mon Sep 17 00:00:00 2001 From: Max Nuding Date: Wed, 26 Apr 2023 17:52:21 +0200 Subject: [PATCH] Fix #28 specify a CSP --- svelte.config.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/svelte.config.js b/svelte.config.js index 9444951..85b9660 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -12,6 +12,15 @@ const config = { // If your environment is not supported or you settled on a specific environment, switch out the adapter. // See https://kit.svelte.dev/docs/adapters for more information about adapters. adapter: adapter() + }, + + csp: { + directives: { + 'script-src': ['self'] + }, + reportOnly: { + 'script-src': ['self'] + } } };