I use Axios library to perform AJAX requests. From my page I need to do a remote login to another page. The login request gives a 302 status and performs a redirect to a request with the correct status (login ok or not)
How can I use axios to catch the correct login request?
Requests performed by the browser

My code handling the response. Cannot reach the redirected request
const response = await axios.post('https://something/login', {
j_username: this.username,
j_password: hash.hex()
},
{headers: {
'Accept': 'application/json',
'X-Ajax-call': true
}});