mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
Made the session cookie aware of the possible relative path (#4663)
This commit is contained in:
@@ -62,6 +62,10 @@ module.exports = function(app) {
|
||||
if (nconf.get('secure')) {
|
||||
cookie.secure = true;
|
||||
}
|
||||
|
||||
if (relativePath !== '') {
|
||||
cookie.path = relativePath;
|
||||
}
|
||||
|
||||
app.use(session({
|
||||
store: db.sessionStore,
|
||||
|
||||
Reference in New Issue
Block a user