I have the same issue and can easily be duplicated. Setup WSL on Windows 10 with Ubuntu 18.04. Configure apache. Then in Windows add the hosts entries to the hosts file.
127.0.0.1 myname.localhost
::1 myname.localhost
Then try to access https://myname.localhost from Postman. Note: I have SSL setup.
Tell postman not to validate SSL but mine is valid anyhow. And tell postman not to use any proxy. I get the same issue with and without using system proxy.
Postman will give the error Error: connect ECONNREFUSED 127.0.0.1:443.
As a work around if you click on code and output it to curl it works in the command prompt. Note: Windows you need to change the single quote to double quote.
IE: ‘https://…’ to “https://…”
curl --location --request GET “https://myname.localhost”