fixup: some security stuff
This commit is contained in:
parent
f1cafc3f09
commit
35144b34c2
|
@ -31,6 +31,9 @@ module.exports = class Server {
|
||||||
secret: crypto.randomBytes(256).toString('hex'),
|
secret: crypto.randomBytes(256).toString('hex'),
|
||||||
resave: true,
|
resave: true,
|
||||||
saveUninitialized: true,
|
saveUninitialized: true,
|
||||||
|
cookie: {
|
||||||
|
httpOnly: true,
|
||||||
|
},
|
||||||
}))
|
}))
|
||||||
|
|
||||||
.get('/api/release', (Util.promisify(async () => {
|
.get('/api/release', (Util.promisify(async () => {
|
||||||
|
|
Loading…
Reference in New Issue