I can't figure out how to make a POST request that dosen't automatically follow redirects on Flutter Web. I've tried using Flutter's HTTP library, Dart's HTML library, and a third party plugin Dio, and set the followRedirects flag to false on all of them. All of them have automatically followed redirects anyway, and there are cookies that are only contained in one of the redirects that I am trying to obtain. Using a network inspector I am able to see that all of the redirects are followed and the cookie I am looking for is there, but I can't get the response in Flutter. I have also tried dio's cookiejar plugin, but it dosen't seem to cache any cookies for any uri on Web.
Any help would be appreciated, thanks for reading.