CORS for socket.io
This commit is contained in:
parent
f1e70f7763
commit
7a794a3995
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user