From 9a7ad404016f288725a158c9ea7f56176c244a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Fri, 23 Dec 2022 19:50:57 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=A6=20Disable=20crsf=20for=20now=20to?= =?UTF-8?q?=20reenable=20the=20newsletter=20form?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/molecules/EmailForm.svelte | 2 +- src/routes/+page.server.ts | 2 +- svelte.config.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/molecules/EmailForm.svelte b/src/components/molecules/EmailForm.svelte index 6ce88cc..5a24acd 100644 --- a/src/components/molecules/EmailForm.svelte +++ b/src/components/molecules/EmailForm.svelte @@ -29,7 +29,7 @@ formStatus = result.data if (dev) { - console.log(result.data) + console.log(result) } // If successful diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts index 67c2b5d..a3e904a 100644 --- a/src/routes/+page.server.ts +++ b/src/routes/+page.server.ts @@ -63,7 +63,7 @@ export const load: PageServerLoad = async ({ setHeaders }) => { /** * Form Data */ - export const actions: Actions = { +export const actions: Actions = { // Form newsletter subscription subscribe, } \ No newline at end of file diff --git a/svelte.config.js b/svelte.config.js index 0c9a3f4..6bedeed 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -27,6 +27,7 @@ const config = { $utils: 'src/utils', $style: 'src/style', }, + csrf: false, } }