X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=catalog-ui%2Fwebpack.server.js;h=06ac28d5cb70227a08f6949d7d4e74c7a59223b9;hb=d8a0deaf32e6a545a0359ad84c886b40c4ad625b;hp=608063aa02bccf55c7531e2ac1a1c300cec7416c;hpb=a5445100050e49e83f73424198d73cd72d672a4d;p=sdc.git diff --git a/catalog-ui/webpack.server.js b/catalog-ui/webpack.server.js index 608063aa02..06ac28d5cb 100644 --- a/catalog-ui/webpack.server.js +++ b/catalog-ui/webpack.server.js @@ -40,15 +40,23 @@ module.exports = function(env) { // Redirect all '/sdc1/feProxy/rest' to feHost middlewares.push( proxy(['/sdc1/feProxy/rest'],{ - target: 'http://' + loclahost + ':' + fePort, + target: 'http://' + loclahost + ':' + fePort, changeOrigin: true, secure: false })); + // Redirect all '/sdc1/rest' to feHost + middlewares.push( + proxy(['/sdc1/rest'],{ + target: 'http://' + loclahost + ':' + fePort, + changeOrigin: true, + secure: false + })); + // Redirect dcae urls to feHost middlewares.push( proxy(['/dcae','/sdc1/feProxy/dcae-api'],{ - target: 'http://' + loclahost + ':' + fePort, + target: 'http://' + loclahost + ':' + fePort, changeOrigin: true, secure: false, onProxyRes: (proxyRes, req, res) => { @@ -62,7 +70,7 @@ module.exports = function(env) { // Redirect onboarding urls to feHost middlewares.push( proxy(['/onboarding','/sdc1/feProxy/onboarding-api'],{ - target: 'http://' + loclahost + ':' + fePort, + target: 'http://' + loclahost + ':' + fePort, changeOrigin: true, secure: false, onProxyRes: (proxyRes, req, res) => { @@ -78,4 +86,4 @@ module.exports = function(env) { }; return ServerConfig; -} \ No newline at end of file +}