diff --git a/lib/core/config.js b/lib/core/config.js index 3ca8fda6..13372037 100644 --- a/lib/core/config.js +++ b/lib/core/config.js @@ -123,11 +123,11 @@ Config.prototype._updateBlockchainCors = function(){ } let cors = corsParts.join(','); - if(blockchainConfig.rpcCorsDomain === 'auto'){ + if(blockchainConfig.rpcCorsDomain === 'auto'){ if(cors.length) blockchainConfig.rpcCorsDomain = cors; else blockchainConfig.rpcCorsDomain = ''; } - if(blockchainConfig.wsOrigins === 'auto'){ + if(blockchainConfig.wsOrigins === 'auto'){ if(cors.length) blockchainConfig.wsOrigins = cors; else blockchainConfig.wsOrigins = ''; }