OptionalagentOptionalauthBasic authentication i.e. 'user:password' to compute an Authorization header.
OptionalautoRewrites the location host/ port on (301 / 302 / 307 / 308) redirects based on requested host/ port.Default: false.
OptionalbufferBuffer
Optionalbypasswebpack-dev-server style bypass function
OptionalcaOptionally override the trusted CA certificates. This is passed to https.request.
OptionalchangeChanges the origin of the host header to the target URL.
Optionalconfigureconfigure the proxy server (e.g. listen to events)
Optionalcookierewrites domain of set-cookie headers.
Optionalcookierewrites path of set-cookie headers. Default: false
OptionalfollowSpecify whether you want to follow redirects. Default: false
OptionalforwardURL string to be parsed with the url module or a URL object.
Optionalheadersobject with extra headers to be added to target requests.
OptionalhostRewrites the location hostname on (301 / 302 / 307 / 308) redirects, Default: null.
OptionalignoreSpecify whether you want to ignore the proxy path of the incoming request.
OptionallocalLocal interface string to bind for outgoing connections.
OptionalmethodExplicitly set the method type of the ProxyReq
OptionalprependSpecify whether you want to prepend the target's path to the proxy path.
Optionalpreservespecify whether you want to keep letter case of response header key
OptionalprotocolRewrites the location protocol on (301 / 302 / 307 / 308) redirects to 'http' or 'https'.Default: null.
OptionalproxyTimeout (in milliseconds) when proxy receives no response from target. Default: 120000 (2 minutes)
Optionalrewriterewrite path
Optionalrewriterewrite the Origin header of a WebSocket request to match the target
Exercise caution as rewriting the Origin can leave the proxying open to CSRF attacks.
OptionalsecureVerify SSL certificate.
OptionalselfIf set to true, none of the webOutgoing passes are called and it's your responsibility to appropriately return the response by listening and acting on the proxyRes event
OptionalsslObject to be passed to https.createServer().
OptionaltargetURL string to be parsed with the url module.
OptionaltimeoutTimeout (in milliseconds) for incoming requests
OptionaltoExplicitly specify if we are proxying to another proxy.
OptionalwsIf you want to proxy websockets.
OptionalxfwdAdds x- forward headers.
Object to be passed to http(s).request.