Home > Net >  Why does express-http-proxy seem to be ignoring the path?
Why does express-http-proxy seem to be ignoring the path?

Time:09-23

I have the following...

const coreUrl = "myip:3000"
app.use('/login', proxy(coreUrl, options));

I would expect this to forward to myip:3000/login but it actually forwards to myip:3000 I also tried using coreUrl "/login" as well but that didn't seem to help.

How do I redirect with the correct path using this tool?

CodePudding user response:

According to the documentation, the first argument to express-http-proxy is the host without a path. http-proxy seems to offer more options.

  • Related