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! 🙏
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! 🙏
