From 185d28c295036c0ed1e8b28a9635aeb43251159b Mon Sep 17 00:00:00 2001 From: Max Nuding Date: Tue, 20 Jun 2023 15:09:48 +0200 Subject: [PATCH] Fix CSP config being in the wrong section --- svelte.config.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/svelte.config.js b/svelte.config.js index 85b9660..0f7616b 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -11,15 +11,15 @@ const config = { // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. // 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() - }, + adapter: adapter(), - csp: { - directives: { - 'script-src': ['self'] - }, - reportOnly: { - 'script-src': ['self'] + csp: { + directives: { + 'script-src': ['self'] + }, + reportOnly: { + 'script-src': ['self'] + } } } };