From e19dc8eb3e61619fb07c9e43f8020dadf88c8c6a Mon Sep 17 00:00:00 2001 From: Richard Bergsma Date: Thu, 26 Jun 2025 23:03:27 +0200 Subject: [PATCH] Update ContactForm component to use dynamic origin for API requests and ensure CSRF token is included in form submissions - Modified API fetch calls in the ContactForm to use window.location.origin for better compatibility across environments. - Ensured CSRF token is appended to form data before submission for enhanced security. --- src/components/ContactForm.astro | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/ContactForm.astro b/src/components/ContactForm.astro index f8ef31c..c5a0239 100644 --- a/src/components/ContactForm.astro +++ b/src/components/ContactForm.astro @@ -32,7 +32,7 @@