fixup: some security stuff

This commit is contained in:
Philip H. 2023-12-02 23:38:28 +00:00 committed by GitHub
parent f1cafc3f09
commit 35144b34c2
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 () => {