diff --git a/packages/rocketchat-cors/cors.js b/packages/rocketchat-cors/cors.js index f458a73ca778..a41a833d1598 100644 --- a/packages/rocketchat-cors/cors.js +++ b/packages/rocketchat-cors/cors.js @@ -3,6 +3,11 @@ import _ from 'underscore'; import url from 'url'; +import tls from 'tls'; +// FIX For TLS error see more here https://github.com/RocketChat/Rocket.Chat/issues/9316 +// TODO: Remove after NodeJS fix it, more information https://github.com/nodejs/node/issues/16196 https://github.com/nodejs/node/pull/16853 +tls.DEFAULT_ECDH_CURVE = 'auto'; + WebApp.rawConnectHandlers.use(Meteor.bindEnvironment(function(req, res, next) { if (req._body) { return next();