title: Axios follow redirect
body: <p>I currently have some JavaScript code in my front-end <code>React</code> application that makes <code>get/post requests</code> to my <code>Express</code> back-end with <code>axios</code>. 
  My current back-end implementation can sometimes <code>redirect</code> to a different page if the input is invalid (to the login page in the following example)</p>
  
  <pre><code>//back-end logic
  if(valid data) response.json(someData);
  if(invalid data) response.redirect("/login");
  </code></pre>
  
  <p>My axios request is the following:</p>
  
  <pre><code>axios.get("some.url/api").then(res =&gt; {
      //work with the res.someData if valid
  }
  .catch(err =&gt; console.log(err))
  </code></pre>
  
  <p>The issue I am facing is that if <code>axios</code> receives the redirect response it fetches that page but I want to redirect the window to the redirected URL.</p>
  
  <p>Is it possible to make axios redirect the user window to the redirected page with axios when it receives <code>response.redirect('url')</code> from <code>Express</code>?</p>