Open
Description
Greetings!
I have created what should be a simple proxy server on my system:
var httpProxy = require('http-proxy');
httpProxy.createProxyServer(
{
secure: false,
target: 'https://www.google.com:443'
}
).listen(3000);
When attempting to access this proxy server via web browser, I'm noticing in the network traffic that the target port number (443) is being ignored and the target request ends up using the same port number as that used by the proxy server (3000). In other words, the request ends up going to https://www.google.com:3000
instead of https://www.google.com:443
.
The version of http-proxy
specified in my package.json is ^1.18.1
.
I am deploying my application using CLI tool forever
.
Is there an obvious configuration that I am missing to get my target port to be respected?
Metadata
Metadata
Assignees
Labels
No labels