ソースを参照

Bug fix: cookies were not working across subdomains.

Lee Morgan 5 年 前
コミット
e72fd50691
1 ファイル変更2 行追加1 行削除
  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());