fix: Restore previous WSS CORS behavior
This commit is contained in:
@ -30,6 +30,10 @@ io.adapter(
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
io.origins((_, callback) => {
|
||||||
|
callback(null, true);
|
||||||
|
});
|
||||||
|
|
||||||
io.of("/").adapter.on("error", (err) => {
|
io.of("/").adapter.on("error", (err) => {
|
||||||
if (err.name === "MaxRetriesPerRequestError") {
|
if (err.name === "MaxRetriesPerRequestError") {
|
||||||
console.error(`Redis error: ${err.message}. Shutting down now.`);
|
console.error(`Redis error: ${err.message}. Shutting down now.`);
|
||||||
|
Reference in New Issue
Block a user