<p dir="auto">Hello,</p>
<p dir="auto">I'm using axios 0.17.1.</p>
<p dir="auto">When I send a request to my API with axios and that my server returns a 302 status code (redirection), the error.response object is undifined on catch function. The error object I have when a 302 request is send :</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22802680/35156888-86c76f24-fd32-11e7-90fa-f092c8582aa3.png"><img src="https://user-images.githubusercontent.com/22802680/35156888-86c76f24-fd32-11e7-90fa-f092c8582aa3.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">My server is working properly and returning code 302, I can see it in firefox console. I also tried the request on postman.</p>
<p dir="auto">Is anyone can help me ?</p>
<p dir="auto">Thank you,</p>
<p dir="auto">Ben.</p>
<h4 dir="auto">Summary</h4>
<p dir="auto">Sending a JSON response with status code 302 and some payload from the server (Laravel 5.5) results in <code class="notranslate">error.response.data</code> being <code class="notranslate">undefined</code> in error handler on IE only (Chrome, Firefox, Safari, Opera do not seem affected, payload data is available as you would expect). <code class="notranslate">error.response.request.response</code> and <code class="notranslate">error.response.request.responseText</code> are empty string as well. Seems like IE is notorious for having these kind of <a href="https://github.com/axios/axios/issues/201" data-hovercard-type="issue" data-hovercard-url="/axios/axios/issues/201/hovercard">issues</a></p>
<h4 dir="auto">Context</h4>
<ul dir="auto">
<li>axios version: <em>v0.17.0</em></li>
<li>Environment: <em>php v7.0.22, edge 16, windows 10</em></li>
</ul>