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

20 Replies, 1959 Views

Hey everyone,

I’m working on a Node Express proxy setup and kinda stuck on how to modify the request path. Like, I need to change the incoming request path before it gets forwarded to the target server.

I’ve been googling stuff like "node express proxy change request path" but most examples are either too basic or don’t cover what I’m trying to do.

Here’s the deal: I want to strip out a part of the path or maybe add a prefix before proxying. Anyone got a quick example or tips on how to handle this?

Also, if there’s a better way than using `http-proxy-middleware`, I’m all ears.

Thanks in advance! 🙏

Messages In This Thread
How to Modify the Request Path in a Node Express Proxy? Need Help with 'node express proxy change request path'! - by - 18-04-2024, 11:29 PM



Users browsing this thread: 1 Guest(s)