proxy http request with node

I have a nodeJs front end on one domain and a rest back end server on another domain.

I would like to be able to perform ajax requests from the front to the back. So, i intend to use a reverse proxy for that, in order to bypass the same origin policy restriction.

My back end Rest server will be secured with Basic auth or OAuth. I would like to know, if i use node-http-proxy if it is possible to send an Authorization header in the http request before proxying it, and how.

Thanks a lot.

You have plenty of ways to accomplish that:

Best Regards,