alfresco-content-app/proxy.conf.js
2017-10-24 17:05:57 +01:00

15 lines
445 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;
}
}
}
};