1

Is it possible to use the node-http-prox module and proxy.proxyRequest to a https server? I tried to do the following but doesnt seem to work.

app.get('/c/users/moreuser', function(req, res) {
    proxy.proxyRequest(req, res, {
        host: 'api.example.com',
        port: 80,
        https: true
    });
});

doing this i dont get any response from the server. But i can get response directly from the server.

1 Answer 1

1

try port: 443, which is the default port for HTTPS.

Sign up to request clarification or add additional context in comments.

1 Comment

doesnt work. The api is on port 80 even if its https.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.