mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Merge pull request #2438 from khassel/fix_socket_v2
This commit is contained in:
commit
3c357f057b
@ -40,6 +40,7 @@ _This release is scheduled to be released on 2021-04-01._
|
|||||||
- Fix empty directory for each module's main javascript file in the inspector
|
- Fix empty directory for each module's main javascript file in the inspector
|
||||||
- Fix Issue with weather forecast icons unit tests with different timezones (#2221)
|
- Fix Issue with weather forecast icons unit tests with different timezones (#2221)
|
||||||
- Fix issue with unencoded characters in translated strings when using nunjuck template (`Loading …` as an example)
|
- Fix issue with unencoded characters in translated strings when using nunjuck template (`Loading …` as an example)
|
||||||
|
- Fix socket.io backward compatibility with socket v2 clients
|
||||||
|
|
||||||
## [2.14.0] - 2021-01-01
|
## [2.14.0] - 2021-01-01
|
||||||
|
|
||||||
|
@ -28,7 +28,11 @@ function Server(config, callback) {
|
|||||||
server = require("http").Server(app);
|
server = require("http").Server(app);
|
||||||
}
|
}
|
||||||
const io = require("socket.io")(server, {
|
const io = require("socket.io")(server, {
|
||||||
cors: {}
|
cors: {
|
||||||
|
origin: /.*$/,
|
||||||
|
credentials: true
|
||||||
|
},
|
||||||
|
allowEIO3: true
|
||||||
});
|
});
|
||||||
|
|
||||||
Log.log(`Starting server on port ${port} ... `);
|
Log.log(`Starting server on port ${port} ... `);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user