fixup: some security stuff (#49)

This commit is contained in:
Philip H
2023-12-03 09:55:15 +01:00
committed by GitHub

View File

@@ -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 () => {