BestUsername
BestUsername

Reputation: 29

View original request response header using axios

When I make my web request in the firefox devtools I get two network responses

The two responses

However when I make a request using axios. Axios is only printing out the response to the second response, and I need data from the first response with the status of 302, but I only get the 200 status response

Upvotes: 1

Views: 446

Answers (1)

ultrayam
ultrayam

Reputation: 144

You can modify maxRedirects to 0 in your request configurations. https://github.com/axios/axios#request-config

This should help you.

Upvotes: 1

Related Questions