mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
proxy setup to fix native login dialog (for local runs) (#2363)
This commit is contained in:
committed by
Eugenio Romano
parent
4f84079a19
commit
b28a5b2a69
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user