mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
proxy settings for basic auth
This commit is contained in:
parent
1b0947e704
commit
4f30ee0700
@ -77,7 +77,7 @@
|
|||||||
"styleExt": "scss",
|
"styleExt": "scss",
|
||||||
"component": {},
|
"component": {},
|
||||||
"serve": {
|
"serve": {
|
||||||
"proxyConfig": "proxy.conf.json",
|
"proxyConfig": "proxy.conf.js",
|
||||||
"port": 3000
|
"port": 3000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
14
proxy.conf.js
Normal file
14
proxy.conf.js
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"/alfresco": {
|
|
||||||
"target": "http://0.0.0.0:8080",
|
|
||||||
"secure": false,
|
|
||||||
"changeOrigin": true
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user