0

To solve CORS issue, I need remove my server port and use apache to redirect to my tomcat with port.

example: http get url: localhost/app1/somerequest, my apache server will redirect to localhost:8080/app1/somerequest, so how can this redirect be work when i use nodejs?

Awakening
  • 3,615
  • 8
  • 35
  • 51

1 Answers1

0

If you want to proxy the request, use node-http-proxy. If you want to redirect the request, see this

Community
  • 1
  • 1