From cdd18aebfdfe50fa1b26b9fa7913de547ff8c78f Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Mon, 8 Jun 2020 16:07:30 +0200 Subject: 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 --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 36cfe64a..f6e9d5a3 100644 --- a/app.js +++ b/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 -- cgit v1.2.3