GoogleChrome / android-browser-helper

The Android Browser Helper library helps developers use Custom Tabs and Trusted Web Activities on top of the AndroidX browser support library.
Apache License 2.0
688 stars 286 forks source link

[Question] Share/add cookies to cookie request headers? #379

Open PabloDesiderioFlores opened 2 years ago

PabloDesiderioFlores commented 2 years ago

Describe the bug

I am able to see non-whitelisted headers but I'm only see bearer-token for example. Cookies are always override.

It feels like chrome custom tab is blocking our cookies sent with extra-headers. I am using the example code with our domain that is validating correctly the digital asset links for relation use as origin.

187477668-24c47aba-f77d-46ee-95cb-309bc2acb43e

On requests headers I can see bearer-token correctly but cookie has other stuff and does not contain the ones I'm sending.

Is there a chance that we cannot override/add more cookies sent by the server, from the app?

Like if we already have cookie: "something=123;" we cannot add (or override) cookies from the app and end up with something like cookie: "something=123; sendFromApp=newCookie;"?