T
T
TVN2020-02-15 10:51:56
Node.js
TVN, 2020-02-15 10:51:56

How to redirect an HTTP request to another server and return the received response using Node?

The Vkontakte API sends POST requests to port 80 of the server connected to it.
In order to develop, I need the VK API to be able to reach my local server, accessible through the MGTS router. Unfortunately, MGTS does not allow incoming requests on port 80, so I have an idea to put a simple proxy server on Heroku that will proxy requests from port 80 to port 5000 of my router.

How and is it possible to solve this problem with the help of Node / express and are there ready-made packages for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-02-15
@TVN

If you need for development - https://ngrok.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question