mirror of
https://github.com/wg-easy/wg-easy.git
synced 2025-10-21 06:39:34 +08:00
fixup: some security stuff
This commit is contained in:
@@ -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 () => {
|
||||
|
Reference in New Issue
Block a user