From 43df66efabc4e05f9b978496e530866c0e80a274 Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Tue, 20 Jul 2021 13:18:13 -0700 Subject: [PATCH] adding cors samesite to none --- index.js | 2 ++ 1 file changed, 2 insertions(+) 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