allow any cors origin
This commit is contained in:
@@ -17,7 +17,7 @@ const server = http.createServer(app);
|
||||
const { Server } = require("socket.io");
|
||||
const io = new Server(server, {
|
||||
cors: {
|
||||
origin: "http://localhost:4200",
|
||||
origin: "*",
|
||||
methods: ["GET", "POST"]
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user