forked from mirrors/amnezia-wg-easy
fixup: some security stuff
This commit is contained in:
parent
f1cafc3f09
commit
35144b34c2
1 changed files with 3 additions and 0 deletions
|
@ -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 () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue