title: Ngrok not passing my post request on to localhost
body: <p>I'm trying to set up a webhook for Stripe and I've created a controller, according to the <a href="https://stripe.com/docs/webhooks#signatures" rel="noreferrer">Stripe doc</a> , to do it in ASP.Net MVC running in a virtual machine (maybe that changes things?). I've been testing the action in the controller to see if I can receive posts, so I'm using Postman to send my localhost posts requests which are working. But now I need to use Ngrok to give my localhost a url so that Stripe can use it. I'm running ngrok and passing in these parameters to run</p>
  
  <pre><code>ngrok http -host-header="localhost:44368" 44368
  </code></pre>
  
  <p>and here is what I see, everything looks ok</p>
  
  <p><a href="https://i.stack.imgur.com/B2P6n.png" rel="noreferrer"><img src="https://i.stack.imgur.com/B2P6n.png" alt="enter image description here"></a></p>
  
  <p>But now when I try and use it in Postaman  </p>
  
  <blockquote>
    <p>ex <a href="https://11d1ba97.ngrok.io/StripeWebHook/Index" rel="noreferrer">https://11d1ba97.ngrok.io/StripeWebHook/Index</a></p>
  </blockquote>
  
  <p>I get a 502 Bad Gateway message and the action method never gets hit.</p>
  
  <p>I get the same problem when I try and send a test webhook from Stripe.
  FYI - The request times from Ngrok using 'localhost:4040' show all my response times as 0ms. </p>
  
  <p><a href="https://i.stack.imgur.com/9pOFa.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9pOFa.png" alt="enter image description here"></a></p>
  
  <p><strong>Update</strong> - I was emailed by ngrok 
  "The trouble is the HTTPS. ngrok terminates HTTPS traffic and then forwards the unencrypted http traffic through to your local application. You want to do one of two things:</p>
  
  <p>1) make your application expose an HTTP port as well and forward traffic to that
  2) use ngrok's TLS tunnels (which hand of TLS traffic to you for termination). with this option you have all the complexities of doing cert management, cert mismatches, etc, just fyi. i'd recommend #1 if possible"</p>
  
  <p>Question - anyone know how to open up a http port in a ASP.Net MVC app using Https?</p>