Skip to content

Commit

Permalink
Pass sockets.cookie to engine.io if it's false
Browse files Browse the repository at this point in the history
  • Loading branch information
CyBot committed Sep 13, 2023
1 parent db7aad2 commit 82e8a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ module.exports = function ToInitialize(app) {
if (app.config.sockets.allowUpgrades) {
opts.allowUpgrades = app.config.sockets.allowUpgrades;
}
if (app.config.sockets.cookie) {
if (typeof app.config.sockets.cookie !== 'undefined') {
opts.cookie = app.config.sockets.cookie;
}
if (app.config.sockets.onlyAllowOrigins) {
Expand Down

0 comments on commit 82e8a52

Please sign in to comment.