mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 20:59:16 +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 => {
|
export const initIO = (httpServer: Server): SocketIO => {
|
||||||
io = socketIo(httpServer);
|
io = socketIo(httpServer);
|
||||||
io.origins([process.env.FRONTEND_URL || "*"]);
|
|
||||||
|
|
||||||
io.on("connection", socket => {
|
io.on("connection", socket => {
|
||||||
console.log("Client Connected");
|
console.log("Client Connected");
|
||||||
|
|||||||
Reference in New Issue
Block a user