mirror of
https://github.com/status-im/codimd.git
synced 2025-01-11 23:14:24 +00:00
Now always create session to ensure cookie authorize can proceed
This commit is contained in:
parent
f5010af4f1
commit
db324c5624
2
app.js
2
app.js
@ -96,7 +96,7 @@ app.use(session({
|
||||
name: config.sessionname,
|
||||
secret: config.sessionsecret,
|
||||
resave: false, //don't save session if unmodified
|
||||
saveUninitialized: false, //don't create session until something stored
|
||||
saveUninitialized: true, //always create session to ensure the origin
|
||||
cookie: {
|
||||
maxAge: new Date(Date.now() + config.sessionlife),
|
||||
expires: new Date(Date.now() + config.sessionlife),
|
||||
|
Loading…
x
Reference in New Issue
Block a user