title: ERR_INVALID_HTTP_RESPONSE using Angular 7 and ASP.Net Core 2.2 in Google Chrome browser
body: <p>I have an application which is using Angular 7 for the front end and ASP.Net Core 2.2 for serving APIs. When I am sending <code>POST</code> or <code>PUT</code> requests using Google Chrome browser, I get <code>ERR_INVALID_HTTP_RESPONSE</code> error.</p>
  
  <p>When I downgrade my .Net Core to version 2.1, everything works fine</p>
  
  <p>Also when I am testing my app in Firefox, again everything is working fine!</p>
  
  <p>I do not know how to resolve this issue</p>
  
  <p>I am using Google Chrome version 71</p>
  
  <p>When I check the Network tab in Google Chrome, I found that Chrome sends a preflight request to the server too...</p>
  
  <p>Here is what recorded in Network tab:</p>
  
  <p>First:</p>
  
  <pre><code>Request URL: http://localhost:12346/api/XXXX
  Request Method: OPTIONS
  Status Code: 204 No Content
  Remote Address: [::1]:12346
  Referrer Policy: no-referrer-when-downgrade
  </code></pre>
  
  <p>Then:(which cause the error)</p>
  
  <pre><code>Request URL: http://localhost:12346/api/XXXX
  Referrer Policy: no-referrer-when-downgrade
  </code></pre>
  
  <p>As you see chrome does not send any <code>POST</code> request to the server (which should send).</p>