From fb7787814320edbed0ab4e96406e2fa3c0ff61cd Mon Sep 17 00:00:00 2001 From: David Mehren Date: Mon, 8 Jun 2020 15:29:27 +0200 Subject: [PATCH] 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 --- src/lib/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/app.ts b/src/lib/app.ts index bfc97410f..b4a921df1 100644 --- a/src/lib/app.ts +++ b/src/lib/app.ts @@ -64,7 +64,7 @@ if (config.useSSL) { } // socket io -const io = SocketIO(server) +const io = SocketIO(server, { cookie: false }) io.engine.ws = new WebSocket.Server({ noServer: true, perMessageDeflate: false