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?
It's not, but your only options are "follow all redirects", "error", or "get back a thing that says we got a redirect response but does not let you inspect the response in any way shape or form"
-
-
> An opaque-redirect filtered response is a filtered response whose type is "opaqueredirect", status is 0, status message is the empty byte sequence, header list is empty, body is null, and trailer is empty. https://fetch.spec.whatwg.org/#concept-filtered-response-opaque …
-
so it's like "uh, the server sent... something" "can I see it" "... no"
- 1 more reply
New conversation -
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.