diff --git a/lib/modules/storage/storageProcessesLauncher.js b/lib/modules/storage/storageProcessesLauncher.js index 79b9a3b8c..7b2cd596a 100644 --- a/lib/modules/storage/storageProcessesLauncher.js +++ b/lib/modules/storage/storageProcessesLauncher.js @@ -28,7 +28,7 @@ class StorageProcessesLauncher { }); } - buildCors(storageName) + buildCors() { let corsParts = []; // add our webserver CORS @@ -39,12 +39,11 @@ class StorageProcessesLauncher { else corsParts.push('http://localhost:8000'); } - // add all dapp connection storage + // add all dapp connection storage if(this.storageConfig.enabled) { this.storageConfig.dappConnection.forEach(dappConn => { - if(dappConn.provider === storageName) return; // do not add CORS URL for ourselves if(dappConn.getUrl || dappConn.host){ - + // if getUrl is specified in the config, that needs to be included in cors // instead of the concatenated protocol://host:port if(dappConn.getUrl) { @@ -114,7 +113,7 @@ class StorageProcessesLauncher { action: constants.blockchain.init, options: { storageConfig: self.storageConfig, blockchainConfig: self.blockchainConfig, - cors: self.buildCors(storageName) + cors: self.buildCors() } });