mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
v3: misc fixes
This commit is contained in:
@@ -61,7 +61,8 @@ module.exports = function attachMiddlewares (app, server) {
|
||||
app.use(cookieSession({
|
||||
name: 'connect:sess', // Used to keep backward compatibility with Express 3 cookies
|
||||
secret: SESSION_SECRET,
|
||||
httpOnly: false, // TODO this should be true for security, what about https only (secure) ?
|
||||
httpOnly: true, // so cookies are not accessible with browser JS
|
||||
// TODO what about https only (secure) ?
|
||||
maxAge: TWO_WEEKS,
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user