How to Modify the Request Path in a Node Express Proxy? Need Help with 'node express proxy change request path'![/b

10 Replies, 2146 Views

Hey everyone!

So I’m working on this node express proxy and need to *modify the request path* before it hits the target server. Basically, I’m trying to figure out how to node express proxy change request path dynamically.

Like, if the request comes in as `/api/v1/users`, I wanna change it to `/v2/users` or something like that. I’ve been googling around but can’t seem to find a clean way to do it.

Anyone got tips or code snippets for this? Maybe using `http-proxy-middleware` or something else?

Thanks in advance! 🙏
(Also, sorry if this is a noob question lol)

Messages In This Thread
How to Modify the Request Path in a Node Express Proxy? Need Help with 'node express proxy change request path'![/b - by - 15-02-2025, 09:05 PM



Users browsing this thread: 1 Guest(s)