adding cors samesite to none
This commit is contained in:
2
index.js
2
index.js
@@ -78,6 +78,8 @@ DB.getDB.then((DB)=>{
|
|||||||
maxAge: 1000 * 60 * 60 * 24 * 30, // would expire after 30 days
|
maxAge: 1000 * 60 * 60 * 24 * 30, // would expire after 30 days
|
||||||
httpOnly: true, // The cookie only accessible by the web server
|
httpOnly: true, // The cookie only accessible by the web server
|
||||||
//signed: true // Indicates if the cookie should be signed
|
//signed: true // Indicates if the cookie should be signed
|
||||||
|
sameSite: 'none',
|
||||||
|
secure: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
// route for user Login
|
// route for user Login
|
||||||
|
|||||||
Reference in New Issue
Block a user