title: Angular returning status code 0 instead of 302
body: <p>Angular has its own status code 0 for failed request. I am trying to make API call on keeping my app open for 30-40 minutes. </p>
  
  <p>When i make a call the API request hits the server and it redirects to the login page hosted by other application.When I make any API call I can see in fiddler the response 302 and should be redirected to the login page. </p>
  
  <p>The problem is that the it is being redirected to HTTP and my app is using HTTPS so the angular giving mixed content error in console. </p>
  
  <p>I wrote responseError Interceptor to capture the status code 302 and do some manipulation on the Location header and redirect to transform the URL to HTTPS instead of HTTP. That doesnt seem to work.In resposeError I could only see response code 0 instead of 302.</p>
  
  <p>Is it necessary to send the access-control-origin header with the redirect request from the server?</p>
  
  <p>Could someone please help here or suggest a way.</p>
  
  <p>Thanks in advance.</p>