0

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?

Jackie
  • 21,969
  • 32
  • 147
  • 289

1 Answers1

1

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

Heiko Theißen
  • 12,807
  • 2
  • 7
  • 31