diff --git a/demo-shell-ng2/config/webpack.common.js b/demo-shell-ng2/config/webpack.common.js index 4fa6eb3dda..433247c7e9 100644 --- a/demo-shell-ng2/config/webpack.common.js +++ b/demo-shell-ng2/config/webpack.common.js @@ -152,6 +152,15 @@ module.exports = { }, pathRewrite: { '^/ecm': '' + }, + secure: false, + changeOrigin: true, + // workaround for REPO-2260 + onProxyRes: function (proxyRes, req, res) { + const header = proxyRes.headers['www-authenticate']; + if (header && header.startsWith('Basic')) { + proxyRes.headers['www-authenticate'] = 'x' + header; + } } }, '/bpm': { @@ -162,6 +171,15 @@ module.exports = { }, pathRewrite: { '^/bpm': '' + }, + secure: false, + changeOrigin: true, + // workaround + onProxyRes: function (proxyRes, req, res) { + const header = proxyRes.headers['www-authenticate']; + if (header && header.startsWith('Basic')) { + proxyRes.headers['www-authenticate'] = 'x' + header; + } } } }