mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-17 19:37:02 +00:00
fix: socket io CORS error
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user