{"repo":"chimurai/http-proxy-middleware","free":true,"listed":false,"github":"https://github.com/chimurai/http-proxy-middleware","clone":"git clone https://github.com/chimurai/http-proxy-middleware.git","description":":zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more","language":"TypeScript","stars":11132,"topics":["javascript","proxy-middleware","http-proxy","proxy","middleware","nodejs","browser-sync","connect","express","websocket"],"license":"MIT","category":"networking-infra","readme_excerpt":"http-proxy-middleware Node.js proxying made simple. Configure proxy middleware with ease for connect, express, next.js, hono and many more. Powered by httpxy . A maintained version of http-proxy. ⚠️ Note This page is showing documentation for version v4.x.x (release notes) For older documentation: - v3.0.5 - v2.0.4 - v0.21.0 TL;DR Proxy /api requests to http://www.example.org :bulb: Tip: Set the option changeOrigin to true for name-based virtual hosted sites. All httpxy options can be used, along with some extra http-proxy-middleware options. Table of Contents - Install - Basic usage - Express Server Example - app.use(path, proxy) - Options - [ pathFilter (string, \\[\\]string, glob, \\[\\]glob, function)](#pathfilter-string-string-glob-glob-function) - pathRewrite (object/function) - router (object/function) - plugins (Array) - ejectPlugins (boolean) default: false - definePlugin helper - logger (Object) - httpxy events - httpxy options - WebSocket - External WebSocket upgrade - Intercept and manipulate requests - Intercept and manipulate responses - Node.js 17+: ECONNREFUSED issue with IPv6 and localhost (#705) - Debugging - Working examples - Recipes - Compatible servers - Tests - Changelog - License Install Basic usage Create and configure a proxy middleware with: createProxyMiddleware(config) . - options.target : target host to proxy to. (protocol + host) - options.changeOrigin : for virtual hosted sites - see full list of http-proxy-middleware configuration options Express ","default_branch":null,"files":null,"tree":[],"storefront":"/r/chimurai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/chimurai/http-proxy-middleware/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}