From c161fa7e7568437ba501a565ad53192b9cb3b6f3 Mon Sep 17 00:00:00 2001 From: Luc SORIGNET Date: Sat, 31 May 2025 18:53:04 +0200 Subject: [PATCH] fix: ajout de credential include dans get CSRF --- Front-End/src/context/CsrfContext.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Front-End/src/context/CsrfContext.js b/Front-End/src/context/CsrfContext.js index bd48437..0651130 100644 --- a/Front-End/src/context/CsrfContext.js +++ b/Front-End/src/context/CsrfContext.js @@ -17,6 +17,7 @@ export const CsrfProvider = ({ children }) => { fetch(`${BE_AUTH_CSRF_URL}`, { method: 'GET', + credentials: 'include', // Inclut les cookies dans la requĂȘte }) .then((response) => response.json()) .then((data) => {