From e0760acb857ef28fb6f883bf1ce7b68aaa837a09 Mon Sep 17 00:00:00 2001 From: hongjun2002 Date: Thu, 9 Nov 2023 14:53:06 -0600 Subject: [PATCH] added secure --- Server/src/routes/authroutes.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Server/src/routes/authroutes.js b/Server/src/routes/authroutes.js index ccc652e..9e683ec 100644 --- a/Server/src/routes/authroutes.js +++ b/Server/src/routes/authroutes.js @@ -49,11 +49,13 @@ export const authroutes = () => { return res .cookie("accessToken", accessToken, { httpOnly: true, - sameSite: 'none' + sameSite: 'none', + secure: true }) .cookie("UserId", result, { httpOnly: true, - sameSite: 'none' + sameSite: 'none', + secure: true }) .status(200) .json({message: "Logged In"});