cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CB-10896) Cookies are not stored for local documents
Date Tue, 22 Mar 2016 19:46:25 GMT


ASF subversion and git services commented on CB-10896:

Commit eccde6c0c02bff61fcd8d57c39f2cf0a62dbc079 in cordova-android's branch refs/heads/master
from [~bowserj]
[;h=eccde6c ]

CB-10896: We never enabled cookies on the WebView proper

> Cookies are not stored for local documents
> ------------------------------------------
>                 Key: CB-10896
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>         Environment: Android
>            Reporter: Gareth McCaughan
>              Labels: triaged
> (I am using Android 6.0.1 and Cordova 6.0.0, but I do not believe this issue is strongly
> I am building a Cordova application which is a fairly thin wrapper around a small single-page
web app. Setting document.cookie in its Javascript code appears to do nothing, and reading
document.cookie always returns an empty string.
> I believe this is because the document is a local one rather than one served by a remote
server, and Android webviews do not by default permit the use of cookies in such documents.
> It is possible to change this behaviour by calling CookieManager.setAcceptFileSchemeCookies(true);
early enough in the app's lifecycle that no CookieManager object has yet been instantiated.
In particular, doing this at the very start of MainActivity.onCreate appears sufficient.
> Is there a good reason why this shouldn't be Cordova's default behaviour? (E.g., are
such cookies shared between all apps on the device?)

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message