mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
15 lines
384 B
JavaScript
15 lines
384 B
JavaScript
module.exports = {
|
|
'/alfresco': {
|
|
target: 'http://0.0.0.0:8080',
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
};
|