mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 19:53:59 -05:00
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:
parent
faa10da86b
commit
fb77878143
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue