Przeglądaj źródła

Bug fix: cookies were not working across subdomains.

Lee Morgan 5 lat temu
rodzic
commit
e72fd50691
1 zmienionych plików z 2 dodań i 1 usunięć
  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());