Node.js proxying made simple. Configure proxy middleware with ease for connect, express, browser-sync and many more. All http-proxy options can be used, along with some extra http-proxy-middleware options. Determine which requests should be proxied to the target host. Target host to proxy to. (protocol + host). Providing an alternative way to decide which requests should be proxied; In case you are not able to use the server's path parameter to mount the proxy or when you need more flexibility. For fine-grained control you can use wildcard matching. Glob pattern matching is done by micromatch. For full control you can provide a custom function to determine which requests should be proxied or not. Use the shorthand syntax when verbose configuration is not needed. The context and option.target will be automatically configured when shorthand is used. Options can still be used if needed.

Features

  • Path matching and custom matching
  • Multiple path matching
  • Wildcard path matching
  • Specify whether you want to prepend the target's path to the proxy path
  • Local interface string to bind for outgoing connections
  • Basic authentication i.e. 'user:password' to compute an Authorization header

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow http-proxy-middleware

http-proxy-middleware Web Site

Other Useful Business Software
Earn up to 15% annual interest with Nexo. Icon
Earn up to 15% annual interest with Nexo.

More flexibility. More control.

Generate interest, access liquidity without selling, and execute trades seamlessly. All in one platform. Geographic restrictions, eligibility, and terms apply.
Get started with Nexo.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of http-proxy-middleware!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Browsers, TypeScript HTTP Servers

Registered

2021-07-12