fixup: some security stuff (#49)

This commit is contained in:
Philip H 2023-12-03 09:55:15 +01:00 committed by GitHub
commit 150125aa68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ module.exports = class Server {
secret: crypto.randomBytes(256).toString('hex'),
resave: true,
saveUninitialized: true,
cookie: {
httpOnly: true,
},
}))
.get('/api/release', (Util.promisify(async () => {