http-proxy-middleware

:zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more (by chimurai)

Http-proxy-middleware Alternatives

Similar projects and alternatives to http-proxy-middleware

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better http-proxy-middleware alternative or higher similarity.

http-proxy-middleware reviews and mentions

Posts with mentions or reviews of http-proxy-middleware. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-08.
  • What libraries should I use to map multiple ports into a single one with node.js?
    4 projects | /r/node | 8 Jun 2022
    Actually I'm receiving errors like The resource from “http://localhost:8090/Sidebar/Sidebar.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)... Both my css and js files are gettings "text/html" on their headers and changing the http-proxy-middleware options doesn't seem to change it... On their GitHub there's an issue about it: https://github.com/chimurai/http-proxy-middleware/issues/580 ... And they say that it's a webpack issue: https://github.com/froala/angular-froala/issues/170 ... But these solutions on the second page don't work for me.
    4 projects | /r/node | 8 Jun 2022
    you could look at https://github.com/chimurai/http-proxy-middleware
  • Creating and deploying a tiny proxy server on Vercel in 10 minutes
    6 projects | dev.to | 22 Feb 2022
    // Create a proxy to redirect requests of the "/api/*" path to "https://example.org". // // Examples: // GET /api/hello → GET https://example.org/hello // POST /api/test?color=red → POST https://example.org/test?color=red // // Additionally, the proxy will: // - Add an "x-added" header // - Remove the "x-removed" header // From the proxied response. // // You can/should update the proxy to suit your needs. // See https://github.com/chimurai/http-proxy-middleware for more details. const { createProxyMiddleware } = require('http-proxy-middleware'); const apiProxy = createProxyMiddleware({ target: "https://example.org", changeOrigin: true, pathRewrite: { "^/api": "" // strip "/api" from the URL }, onProxyRes(proxyRes) { proxyRes.headers['x-added'] = 'foobar'; // add new header to response delete proxyRes.headers['x-removed']; // remove header from response } }); // Expose the proxy on the "/api/*" endpoint. export default function (req, res) { return apiProxy(req, res); };
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 16 Apr 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic http-proxy-middleware repo stats
5
10,471
5.5
7 days ago
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com