We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fac94a commit daf2841Copy full SHA for daf2841
lib/Server.js
@@ -31,7 +31,7 @@ const optionsSchema = require('./optionsSchema.json');
31
// eslint-disable-next-line global-require
32
const SockjsSession = require('sockjs/lib/transport').Session;
33
const decorateConnection = SockjsSession.prototype.decorateConnection;
34
- SockjsSession.prototype.decorateConnection = function(req) {
+ SockjsSession.prototype.decorateConnection = function (req) {
35
decorateConnection.call(this, req);
36
const connection = this.connection;
37
if (connection.headers && !('origin' in connection.headers) && 'origin' in req.headers) {
0 commit comments