title: Receiving webhook over https in django development server tunneled using ngrok
body: <p>I need to test a payment integration, where the payment service sends a webhook when payment is successful. The url for the webhook must be <code>https://xxx-ngrock.io/paymentNotification</code>. In this case, I cannot change the url to <code>http</code>. My problem is, I cannot receive this webhook because:</p>
  <ol>
  <li><p>In development mode django does not allow traffic over https only over http</p>
  </li>
  <li><p>I tunnel to my development server using this command <code>./ngrok http https://localhost:8000</code> which I guess should forward the https traffic, but I have no way of testing it since the development server does not accept traffic over http in the first place.</p>
  </li>
  </ol>
  <p>Additional comments. Currently the ngrok forwarding map where both traffic from <code>http</code> and <code>https</code> are mapped to the https internal traffic that Django does not support for its development serveer.</p>
  <pre><code>ngrok by @inconshreveable                                                                                               (Ctrl+C to quit)
                                                                                                                                          
  Session Status                online                                                                                                    
  Account                       JianDk (Plan: Free)                                                                                       
  Version                       2.3.40                                                                                                    
  Region                        United States (us)                                                                                        
  Web Interface                 http://127.0.0.1:4040                                                                                     
  Forwarding                    http://3304-94-147-65-45.ngrok.io -&gt; https://localhost:8000                                               
  Forwarding                    https://3304-94-147-65-45.ngrok.io -&gt; https://localhost:8000                                              
                                                                                                                                          
  Connections                   ttl     opn     rt1     rt5     p50     p90                                                               
                                7       0       0.06    0.02    0.00    0.01                                                              
                                                                                                                                          
  HTTP Requests                                                                                                                           
  -------------                                                                                                                           
                                                                                                                                          
  GET /favicon.ico                                                                                                                        
  GET /                                                                                                                                   
  GET /favicon.ico                                                                                                                        
  GET /                                                                                                                                   
  GET /                                                                                                                                   
  GET /favicon.ico                                                                                                                        
  GET /                                                                 
  </code></pre>