You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
Platform(s)
Android
Current Behavior
If there are multiple
Set-Cookie
headers on a proxied response, only the last one is set.Expected Behavior
It should set all of the cookies.
Code Reproduction
Run a server that responds to
http://localhost:8000
with two Set-Cookie headers, ie:Then run:
https://github.com/tlancina/cap-cookie-repro
Other Technical Details
capacitor/android/capacitor/src/main/java/com/getcapacitor/WebViewLocalServer.java
Line 363 in ad83827
From https://developer.android.com/reference/java/net/URLConnection#getHeaderField(java.lang.String): "If called on a connection that sets the same header multiple times with possibly different values, only the last value is returned."
The text was updated successfully, but these errors were encountered: