From 0689b554539f36fc325b707f7a85a5a8d32e24fe Mon Sep 17 00:00:00 2001 From: canove Date: Wed, 6 Jan 2021 21:39:59 -0300 Subject: [PATCH] fix: socket io CORS error --- backend/src/libs/socket.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/src/libs/socket.ts b/backend/src/libs/socket.ts index a2abc96..9281a07 100644 --- a/backend/src/libs/socket.ts +++ b/backend/src/libs/socket.ts @@ -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");