fix: socket io CORS error

This commit is contained in:
canove
2021-01-06 21:39:59 -03:00
parent b1e3cb6b8f
commit 0689b55453

View File

@@ -6,7 +6,6 @@ let io: SocketIO;
export const initIO = (httpServer: Server): SocketIO => {
io = socketIo(httpServer);
io.origins([process.env.FRONTEND_URL || "*"]);
io.on("connection", socket => {
console.log("Client Connected");