mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-16 17:41:07 +00:00
Remove unused socket.io cookie
The socket.io cookie doesn't really have any purpose as it's no longer user in modern socket.io versions. This patch disables it. References: https://github.com/socketio/socket.io/issues/2276 Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
parent
383d791a50
commit
cdd18aebfd
1 changed files with 1 additions and 1 deletions
2
app.js
2
app.js
|
@ -57,7 +57,7 @@ app.use(morgan('combined', {
|
|||
}))
|
||||
|
||||
// socket io
|
||||
var io = require('socket.io')(server)
|
||||
var io = require('socket.io')(server, {cookie: false})
|
||||
io.engine.ws = new (require('ws').Server)({
|
||||
noServer: true,
|
||||
perMessageDeflate: false
|
||||
|
|
Loading…
Reference in a new issue