allow any cors origin

This commit is contained in:
2022-01-29 00:14:55 +02:00
parent 99fd3de775
commit b08b39d1e5

View File

@@ -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"]
}
});