title: Proxy HTTP to HTTPS using Node
body: <p>How can I proxy a 3rd party website from HTTP to HTTPS using NodeJS?</p>
  
  <p>For example, I would like my users to access <a href="http://somesite.com" rel="nofollow noreferrer">http://somesite.com</a> as <a href="https://localhost:8001" rel="nofollow noreferrer">https://localhost:8001</a></p>
  
  <p>I have tried using http-proxy library, following their example in HTTP -> HTTPS section, but all I get is empty response error.</p>