diff options
author | David Mehren | 2020-06-08 15:29:27 +0200 |
---|---|---|
committer | David Mehren | 2020-06-08 15:52:08 +0200 |
commit | 2215da9431bf4a3a1f921a7542887525048d0c1c (patch) | |
tree | 8093fd5dec0822274077f93d5ec229b00baf993e | |
parent | e77e7b165ac4920290015ec4b95e651730009edc (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.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |