I'm try run a angular reverse proxy to request a API as if it were localhost, but i'm behind a corporate proxy.
I created a proxy.conf.json file
{
"/api/*": {
"target": "http://104.43.135.128:8000",
"secure": false,
"changeOrigin": true,
"logLevel": "debug",
"pathRewrite": {"^/api" : ""}
}
}
and i'm run angular with npm start (I modified the package.json)
"start": "ng serve --proxy-config proxy.conf.json",
¿Does anyone know how i canconfigure a corporate proxy in angular?
I have this error.
[HPM] Error occurred while trying to proxy request