From d92c5c56acf54878841ddb22d92d9ca69c254c13 Mon Sep 17 00:00:00 2001 From: BOHA Date: Mon, 23 Mar 2026 20:46:29 +0100 Subject: [PATCH] fix: remove Content-Type header from logout request (no body to send) --- src/admin/context/AuthContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admin/context/AuthContext.tsx b/src/admin/context/AuthContext.tsx index f9e718f..3c2b244 100644 --- a/src/admin/context/AuthContext.tsx +++ b/src/admin/context/AuthContext.tsx @@ -222,7 +222,7 @@ export function AuthProvider({ children }: { children: ReactNode }) { const token = getAccessTokenFn() await fetch(`${API_BASE}/logout`, { method: 'POST', - headers: { 'Content-Type': 'application/json', ...(token && { Authorization: `Bearer ${token}` }) }, + headers: { ...(token && { Authorization: `Bearer ${token}` }) }, credentials: 'include', }) } catch { /* ignore */ } finally {