I'm trying to get angular cli's internal webserver (webpack uses node-http-proxy I think) to work with NTLM authentication and coming up short.
I set up the webpack proxy like this:
// in packages.json
...
"scripts": {
"start": "ng serve --proxy-config proxy.conf.json",
...
The contents of proxy.config.json is:
{
"/srv": {
"target": "http://localhost/access_form",
"logLevel": "debug",
"auth": "LOGIN:PASS"
}
}
I'm trying to add a onProxyRes function to the JSON options object but this fails to start the webserver.
Has anyone had any luck with this set up? Any pointers?