Forráskód Böngészése

Bug fix: cookies were not working across subdomains.

Lee Morgan 5 éve
szülő
commit
e72fd50691
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      app.js

+ 2 - 1
app.js

@@ -38,7 +38,8 @@ app.use(session({
     secret: "Super Secret Subline Subliminally Saving Secrets So Sneaky Snakes Stay Sullen. Simply Superb.",
     cookie: {secure: true},
     saveUninitialized: true,
-    resave: false
+    resave: false,
+    domain: process.env.COOKIE_DOMAIN
 }));
 app.use(express.urlencoded({extended: true}));
 app.use(express.json());