Pārlūkot izejas kodu

Update cookies to be secure and sameSite.

Lee Morgan 5 gadi atpakaļ
vecāks
revīzija
886bc00949
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      app.js

+ 2 - 1
app.js

@@ -18,7 +18,8 @@ app.set("view engine", "ejs");
 
 let sessionOptions = {
     secret: "Super Secret Subline Subliminally Saving Secrets So Sneaky Snakes Stay Sullen. Simply Superb.",
-    cookie: {secure: true},
+    secure: true,
+    sameSite: "strict",
     saveUninitialized: true,
     resave: false,
 }