We have a small problem. We use a cookie to set an information for our web backend.
We add the header “Cookie” to our http requests. This works under iOS. But in Android we get the error: “Refused to set unsafe header “Cookie””. Do you have any idea how we can achieve that in Android?
I don’t know why it’s working in iOS, as same-origin policies should be restricting access to cookies belonging to other origins. If you don’t need access to the actual cookie contents, setting { withCredentials: true } on the Https call might help with what you’re trying, though you’ll also need to handle CORS headers on the server.
Sets whether the WebView should allow third party cookies to be set. Allowing third party cookies is a per WebView policy and can be set differently on different WebView instances.
Apps that target KITKAT or below default to allowing third party cookies. Apps targeting LOLLIPOP or later default to disallowing third party cookies.