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>
This commit is contained in:
David Mehren 2020-06-08 15:29:27 +02:00 committed by Dexter Chua
parent faa10da86b
commit fb77878143

View file

@ -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