cordova-plugin-advanced-http icon indicating copy to clipboard operation
cordova-plugin-advanced-http copied to clipboard

307 redirect not handled

Open monkeychops opened this issue 7 years ago • 5 comments

Hi there,

Firstly, great work with the plugin, it's really saved my ass so far getting around the forced CORS implementation with WKWebview.

I'm just in the process of upgrading my Ionic application to cordova-plugin-ionic-webview 2.0 and the plugin works great for both iOS and Android. BUT. I'm now integrating with a 3rd party API that responds with a 307 redirect which I can see is not handled by the plugin. Any plans to do add this feature in the future?

Many thanks

monkeychops avatar Sep 20 '18 12:09 monkeychops

Anyone got any thoughts on this?

monkeychops avatar Nov 22 '18 14:11 monkeychops

Hi there,

did you already try to force the redirection by using something like: this.http.disableRedirect(false); ? I had to disable redirects in my Ionic project because of an open issue with cookies, you can find my workaround in #148. Maybe you can re-use my code to handle the 307 redirects as well.

Hope it helps! Mat

mg-partec avatar Nov 22 '18 15:11 mg-partec

Thanks for your response. I did actually end up with a very similar solution, but it's a little messy in the client. Just thought I'd check to see if there are any plans to handle it in the plugin :)

monkeychops avatar Nov 22 '18 15:11 monkeychops

Hi guys, thanks for reporting this issue! It's a bug, which I'll need to fix. But it's easy to work around, so I won't handle this with high priority.

silkimen avatar Nov 25 '18 03:11 silkimen

any solution for 307 redirect not handled ?

zivlevy avatar Sep 05 '21 13:09 zivlevy