fix: ajout de credential include dans get CSRF

This commit is contained in:
Luc SORIGNET
2025-05-31 18:53:04 +02:00
parent 789816e986
commit c161fa7e75

View File

@ -17,6 +17,7 @@ export const CsrfProvider = ({ children }) => {
fetch(`${BE_AUTH_CSRF_URL}`, { fetch(`${BE_AUTH_CSRF_URL}`, {
method: 'GET', method: 'GET',
credentials: 'include', // Inclut les cookies dans la requête
}) })
.then((response) => response.json()) .then((response) => response.json())
.then((data) => { .then((data) => {