From d604d892e23b4fff6a11a16293c38408717ec86d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Fri, 23 Dec 2022 20:41:09 +0100 Subject: [PATCH] Disable csrf checkOrigin to fix newsletter form submission --- svelte.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/svelte.config.js b/svelte.config.js index 6bedeed..03e6d17 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -17,6 +17,9 @@ const config = { }), kit: { + csrf: { + checkOrigin: false + }, adapter: adapter({ edge: true }), @@ -27,7 +30,6 @@ const config = { $utils: 'src/utils', $style: 'src/style', }, - csrf: false, } }