title: Error when requesting discovery dock ( HTTPS required)
body: <p>I am using Identity server 4. It was working fine in fact still, everything is working.  However when I try to  call      </p>
  
  <pre><code>var client = new HttpClient();
  // discover endpoints from metadata
  var disco = client.GetDiscoveryDocumentAsync(IDPBaseURL).Result;
  it gives me error         
  http://xxx.x.x.xx:8080/.well-known/openid-configuration: HTTPS required.
  </code></pre>
  
  <p>It's working from Visual studio and local IIS deployment. However i am facing this error only when deploying on the server.</p>
  
  <p>any Idea?</p>