summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mehren2020-06-08 15:29:27 +0200
committerDavid Mehren2020-06-08 15:52:08 +0200
commit2215da9431bf4a3a1f921a7542887525048d0c1c (patch)
tree8093fd5dec0822274077f93d5ec229b00baf993e
parente77e7b165ac4920290015ec4b95e651730009edc (diff)
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 <dmehren1@gmail.com>
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
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