Added cors to the index.js
This commit is contained in:
@ -6,7 +6,7 @@ const app = express();
|
||||
app.disable("x-powered-by");
|
||||
|
||||
const server = http.createServer(app);
|
||||
const io = new Server(server);
|
||||
const io = new Server(server, {cors: {origin: "*"}});
|
||||
|
||||
io.on("connection", require("./handler/connection"));
|
||||
|
||||
|
Reference in New Issue
Block a user