How can I ignore the request body in Axios

Viewed 81

I have an application that is using axios for request. I have an API I would like to hit, which redirects me to another URL. In the redirect URL, there is a very large request body (multiple MBs) that I do not care about.

I know I can get the redirect URL using response.request.res.responseUrl (source).

Is there a way to make this request, get the redirect URL, but cancel the request so I don't incur the cost of loading the request?

0 Answers
Related