diff --git a/index.js b/index.js index b2245cd..1fafd54 100644 --- a/index.js +++ b/index.js @@ -78,6 +78,8 @@ DB.getDB.then((DB)=>{ maxAge: 1000 * 60 * 60 * 24 * 30, // would expire after 30 days httpOnly: true, // The cookie only accessible by the web server //signed: true // Indicates if the cookie should be signed + sameSite: 'none', + secure: true, }; // route for user Login