Explorar el Código

Update cookies to be secure and sameSite.

Lee Morgan hace 5 años
padre
commit
886bc00949
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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,
 }