title: Failed to load resource: net::ERR_CONNECTION_RESET in angular
body: <ol>
  <li><p>I'm trying to submit my form which has name and email and submit button. When I click on the submit button the page is not redirecting to another page, but instead it shows me this error in console:</p>
  
  <pre><code>ERROR 
  HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: "Unknown Error", url: null, ok: false, …}
      error: ProgressEvent
      bubbles: false
      cancelBubble: false
      cancelable: false
      composed: false
      currentTarget: XMLHttpRequest {__zone_symbol__xhrSync: false, __zone_symbol__xhrURL: "http://localhost:44371/api/InsertParticipant", __zone_symbol__loadfalse: Array(1), __zone_symbol__errorfalse: null, __zone_symbol__xhrScheduled: true, …}
      defaultPrevented: false
      eventPhase: 0
      isTrusted: true
      lengthComputable: false
      loaded: 0
      path: []
      returnValue: true
      srcElement: XMLHttpRequest {__zone_symbol__xhrSync: false, __zone_symbol__xhrURL: "http://localhost:44371/api/InsertParticipant", __zone_symbol__loadfalse: Array(1), __zone_symbol__errorfalse: null, __zone_symbol__xhrScheduled: true, …}
      target: XMLHttpRequest {__zone_symbol__xhrSync: false, __zone_symbol__xhrURL: "http://localhost:44371/api/InsertParticipant", __zone_symbol__loadfalse: Array(1), __zone_symbol__errorfalse: null, __zone_symbol__xhrScheduled: true, …}
      timeStamp: 157745.79999991693
      total: 0
      type: "error"
      __proto__: ProgressEvent
      headers: HttpHeaders {normalizedNames: Map(0), lazyUpdate: null, headers: Map(0)}
      message: "Http failure response for (unknown url): 0 Unknown Error"
      name: "HttpErrorResponse"
      ok: false
      status: 0
      statusText: "Unknown Error"
  </code></pre></li>
  </ol>
  
  <blockquote>
    <p>Failed to load resource : net::ERR_CONNECTION_RESET at
    localhost:44371/api/InsertParticipant</p>
  </blockquote>
  
  <ol start="2">
  <li><p>Here I'm doing a webAPI using c#.net where at localhost:44371/api/InsertParticipant.</p></li>
  <li><p>When i click on submit the page should redirect from  <a href="http://127.0.0.1:4200/register" rel="nofollow noreferrer">http://127.0.0.1:4200/register</a>  to 
  <a href="http://127.0.0.1:4200/quiz" rel="nofollow noreferrer">http://127.0.0.1:4200/quiz</a>, but it is not redirecting to <a href="http://127.0.0.1:4200/quiz" rel="nofollow noreferrer">http://127.0.0.1:4200/quiz</a>.</p></li>
  <li>If you need more details I will help you.</li>
  <li>What is the issue in the code?</li>
  <li>How to remove the error? If needed I will give you a screenshot.</li>
  </ol>