fix lint
This commit is contained in:
parent
9f21cb9dca
commit
e5c99dd956
@ -23,14 +23,14 @@ server.listen(port, () => {
|
||||
});
|
||||
|
||||
const io = new socketIO(server, {
|
||||
allowEIO3: true, // backward compat with v2 clients
|
||||
allowEIO3: true, // backwards compat with v2 clients
|
||||
cors: {
|
||||
allowedHeaders: ["Content-Type", "Authorization"],
|
||||
credentials: true,
|
||||
origin: (origin, callback) => {
|
||||
return callback(null, origin || "https://excalidraw.com")
|
||||
}
|
||||
}
|
||||
return callback(null, origin || "https://excalidraw.com");
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
io.on("connection", (socket) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user