diff --git a/frontend/src/components/Navbar.tsx b/frontend/src/components/Navbar.tsx index ed24804..bd738b6 100644 --- a/frontend/src/components/Navbar.tsx +++ b/frontend/src/components/Navbar.tsx @@ -52,7 +52,7 @@ const Navbar = () => { useEffect(() => { window - .fetch("/api/user-data") + .fetch("/api/user-data", { credentials: "same-origin" }) .then((data) => data.json()) .then((data) => { setIsLoggedIn(true)