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
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
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