CORS for socket.io

This commit is contained in:
Arne van Iterson 2020-11-10 23:03:05 +01:00
parent f1e70f7763
commit 7a794a3995

View File

@ -8,7 +8,10 @@ const style = require("ansi-styles");
const Gamedig = require("gamedig");
const io = require("socket.io")(server, {
path: "/socket.io"
path: "/socket.io",
cors: {
origin: true
}
});
var ns = {