mirror of
https://github.com/wg-easy/wg-easy.git
synced 2025-10-23 15:43:18 +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'),
|
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 () => {
|
||||||
|
Reference in New Issue
Block a user