title: response redirection(302) not work in angular
body: <p>I Designed a login page for SSO(Single Sign-On) by angular and the services for login developed separately by spring boot framework.</p>
  
  <p>In the angular app, when submitted login form, login service call with post-HttpMethod by HttpClient module. In login service if username and password be correct then in the result of login service, set response status to 302 and add a specific URL to the header of the response. in this scenario I expect to browser redirect to specific URL, but this is not happening.</p>
  
  <p>I trace request and response in Firefox as the same as the attached picture 
  <a href="https://i.stack.imgur.com/THLAm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/THLAm.png" alt="Firefox network tab"></a>.</p>
  
  <ol>
  <li>Send a post-login request, and response of it is 302 and header location is a specific URL that set in the server response</li>
  <li>The browser sends an option request to location URL of response header and gets 200 result</li>
  <li>The browser sends a get request to target URL(header location is specific URL), at this point browser is not opening target URL, and the just response is 200.</li>
  </ol>
  
  <hr>
  
  <p>I change the Location header of response, and saw that the redirection is not doing(just login request and option request done), below picture is request trace.
  <a href="https://i.stack.imgur.com/2vcJ8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2vcJ8.png" alt="Firefox network tab"></a></p>