From 2215da9431bf4a3a1f921a7542887525048d0c1c Mon Sep 17 00:00:00 2001 From: David Mehren Date: Mon, 8 Jun 2020 15:29:27 +0200 Subject: Disable unneeded 'io' cookie. According to https://github.com/socketio/socket.io/issues/2276 this cookie is not used for anything. To avoid browser warnings about the sameSite attribute, we disable it here. Signed-off-by: David Mehren --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 7a66a537..265eb475 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