Stop when reaching 307 (maxRedirects)
See original GitHub issueDescribe the issue
On docs it states that setting maxRedirects:0
it would not follow any redirect. When i set it, sending a post request to my endpoint that returns 307, it follows the redirect, which is not supposed to happen.
Expected behavior, if applicable
setting maxRedirects: 0
when receiving 307, it would not follow the redirect.
Environment:
- Axios Version 0.18.1
- OS: ubuntu 17
- Browser chrome
- Browser Version 74.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
307 Temporary Redirect - HTTP - MDN Web Docs
HTTP 307 Temporary Redirect redirect status response code indicates that the resource requested has been temporarily moved to the URL given ...
Read more >ERR_TOO_MANY_REDIRECTS · Cloudflare SSL/TLS docs
This error is commonly caused by: A misconfiguration of your SSL/TLS Encryption mode. Various settings in SSL/TLS > Edge Certificates. A ...
Read more >Troubleshooting: Too Many Redirects - Liquid Web
The error "too many redirects" means that the website keeps being redirected between different addresses in a way that will never complete.
Read more >Redirects - Everything curl
The (older) response code to tell a client to send a POST also in the next request but temporarily is 307. This redirect...
Read more >How to prevent apache http client from following a redirect
the remote server sends a redirect, and i want to achieve that my client isn't following the redirect automatically so that i can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Of course i can! I’ll build one and add in here!
Redirections are handled by browsers. I think axios can’t stop that. Please correct me if I misunderstood something and remind to reopen.