silkimen / cordova-plugin-advanced-http

Cordova / Phonegap plugin for communicating with HTTP servers. Allows for SSL pinning!
MIT License
391 stars 313 forks source link

Session management broken in Android- Session cookie handling failed in latest 3.3.1 version #490

Open Mani-VD opened 1 year ago

Mani-VD commented 1 year ago

Session management broken I am trying to connect odoo web api using this plugin. After login, it says session expired, which means session management is broken.

System info

Are you using ionic-native-wrapper?

Minimum viable code to reproduce http.post(**

silviogutierrez commented 1 year ago

@Mani-VD : does not seem like server-set cookies work at all with Capacitor 4 on Android.

On 4.0 - 4.2, setting stuff is buggy.

On 4.3+, duplicate headers are often sent and setting stuff is still buggy.

This plugin is built for Cordova but I imagine a lot of us use it with Capacitor. After all, it has far surpassed Cordova in usage.

I'm working on a reproduction that hopefully helps fix this. It'll have Cordova and Capacitor side by side, so that @silkimen has an easier time reproducing if he feels inclined to add support for Capacitor.

Mani-VD commented 1 year ago

@silviogutierrez Any alternative solutions available for now?

silviogutierrez commented 1 year ago

@Mani-VD : I've had luck using Cordova 4.2, but maybe your problem is different.

So 4.3+ is broken.

silviogutierrez commented 1 year ago

@Mani-VD : maybe this is related to your issue. #492