Is it seriously impossible to make an ajax request and have it *not* follow redirects, but instead give you back a response object telling you where the server wanted to redirect you to?
-
-
AFAIK that is possible in `fetch` (assuming you're talking about JS).
-
Ah I see, even though it allows to stop the redirection, it doesn't give you the URL. Yeah, that sounds annoying.https://github.com/whatwg/fetch/issues/763 …
- 12 more replies
New conversation -
-
-
Agreed. I’d much rather just have it fail or throw if the user agent doesn’t support not-automatically-redirecting. Let me at least try.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I recently encountered this too, and ended up adding a special case to my fetch wrapper that checks the payload for a "redirect" key. Let a thousand duplicated reimplementations of HTTP bloom!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.