Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

remove cookie path temporary

Maidul Islamc33b043f5f2c
diff --git a/backend/src/controllers/authController.ts b/backend/src/controllers/authController.ts
index 4522af9c65..20ac813d4d 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
});