title: Unable to download excel file with https
body: <p>I have written an api in ASP.NET Core which downloads excel file. My code is - </p>
  
  <pre><code>[Route("api/[controller]")]
  [ApiController]
  public class ReportController : ControllerBase {
      [HttpGet]
      [Route("GetReport")]
      public async Task&lt;IActionResult&gt; GetReport(string itemKey = "", bool detailed = false, CancellationToken ct = default)
      {
          var stream = await _logic.PerpetualDiscrepencyReport(itemKey, detailed, ct);
          return File(stream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "Report.xlsx");
      }
  }
  </code></pre>
  
  <p>In Local I am able to hit url and download report with both http and https. But in Staging (IIS server) I am unable to hit the report url with https. If I use http I am able to download report by hitting the url. should I do anything in iis configuration to able to get report with https. Other apis are working fine with https.</p>