You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently for example the http(s) agent can only be set statically when instantiating the http proxy middleware.
In some situations the options need to be influenced dynamically for each request processing in httpProxy.
Therefore, it would be good to have a possibility adjust the newProxyOptions before they are passed on to httpProxy. Currently the function prepareProxyRequest is private, so there seems to be no official way to do this.
Solution: Allow to pass a callback hook in options, to adjust newProxyOptions, e.g. setting the http(s) agent before the options are passed on to this.proxy.web