diff --git a/backend/src/controllers/authController.ts b/backend/src/controllers/authController.ts index 4522af9c6..20ac813d4 100644 --- a/backend/src/controllers/authController.ts +++ b/backend/src/controllers/authController.ts @@ -147,7 +147,7 @@ export const logout = async (req: Request, res: Response) => { // clear httpOnly cookie res.cookie('jid', '', { httpOnly: true, - path: '/token', + path: '/', sameSite: 'strict', secure: NODE_ENV === 'production' ? true : false });