From 0daa333d521183fc03f1dd5a791a37bfa7803810 Mon Sep 17 00:00:00 2001 From: saiminh Date: Mon, 30 Oct 2023 15:54:07 +0100 Subject: [PATCH] add csp in svelte config --- svelte.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/svelte.config.js b/svelte.config.js index 709ef8e..1ee97e4 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -31,6 +31,14 @@ const config = { // if `edge` is true, this option cannot be used split: false }), + csp: { + directives: { + 'script-src': ['self', '*.typekit.net', '*.cloudinary.com'] + }, + reportOnly: { + 'script-src': ['self', '*.typekit.net', '*.cloudinary.com'] + } + } // prerender: { // force: true // }