mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 04:45:17 +00:00
fix socket.io cors errors, see breaking change since socket.io v3 https://socket.io/docs/v3/handling-cors/
This commit is contained in:
@@ -27,7 +27,9 @@ function Server(config, callback) {
|
||||
} else {
|
||||
server = require("http").Server(app);
|
||||
}
|
||||
const io = require("socket.io")(server);
|
||||
const io = require("socket.io")(server, {
|
||||
cors: {}
|
||||
});
|
||||
|
||||
Log.log(`Starting server on port ${port} ... `);
|
||||
|
||||
|
Reference in New Issue
Block a user