title: ReactJS sent GET request, responded with 302 redirect, received CORS error
body: <p>This is my stack:</p>
  
  <ol>
  <li>Frontend server: Node + ReactJS (<code>f.com</code>)</li>
  <li>Backend server (API): Golang (<code>b.com</code>)</li>
  </ol>
  
  <p>I'm doing this in development environment where I use <a href="https://github.com/facebookincubator/create-react-app" rel="nofollow noreferrer">create-react-app</a> to run my frontend server via <code>npm start</code> command. I want to perform authentication using SSO served at <code>sso.example.com/login</code>. Ideally whenever there's a request to the Backend server without proper authorization, it will be responded with HTTP 302 Redirect to the SSO page. So the sequence is: </p>
  
  <ol>
  <li>ReactJS sends GET request to <code>b.com/users</code></li>
  <li>Golang responded with http.Redirect("<code>sso.example.com/login</code>")</li>
  <li>ReactJS app gets CORS error from <code>sso.example.com</code> of which I don't have control of adding <code>Access-Control-Allow-Origin:*</code> respond header</li>
  </ol>
  
  <p>How can I redirect my GET request successfully?</p>