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
* **option.secure**: true/false, if you want to verify the SSL Certs
306
306
* **option.toProxy**: true/false, passes the absolute URL as the `path` (useful for proxying to proxies)
307
-
* **option.prependPath**: true/false, Default: true - specify whether you want to prepend the target's path to the proxy path>
308
-
* **option.ignorePath**: true/false, Default: false - specify whether you want to ignore the proxy path of the incoming request>
307
+
* **option.prependPath**: true/false, Default: true - specify whether you want to prepend the target's path to the proxy path
308
+
* **option.ignorePath**: true/false, Default: false - specify whether you want to ignore the proxy path of the incoming request (note: you will have to append / manually if required).
309
309
* **option.localAddress** : Local interface string to bind for outgoing connections
310
-
* **option.changeOrigin**: true/false, adds host to request header.
310
+
* **option.changeOrigin**: true/false, Default: false - changes the origin of the host header to the target URL
311
311
* **option.auth** : Basic authentication i.e. 'user:password' to compute an Authorization header.
312
312
* **option.hostRewrite**: rewrites the location hostname on (301/302/307/308) redirects.
313
313
* **option.autoRewrite**: rewrites the location host/port on (301/302/307/308) redirects based on requested host/port. Default: false.
314
314
* **option.protocolRewrite**: rewrites the location protocol on (301/302/307/308) redirects to 'http' or 'https'. Default: null.
315
+
* **option.cookieDomainRewrite**: rewrites domain of `set-cookie` headers. Possible values:
316
+
* `false` (default): disable cookie rewriting
317
+
* String: new domain, for example `cookieDomainRewrite:"new.domain"`. To remove the domain, use `cookieDomainRewrite:""`.
318
+
* Object: mapping of domains to new domains, use `"*"` to match all domains.
319
+
For example keep one domain unchanged, rewrite one domain and remove other domains:
0 commit comments