-
Notifications
You must be signed in to change notification settings - Fork 30.3k
[WebView] Provide a way to set cookies #27597
Copy link
Copy link
Closed
flutter/plugins
#4561Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.p: webviewThe WebView pluginThe WebView pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.p: webviewThe WebView pluginThe WebView pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
I attempted to set cookies with the
evaluateJavascriptfunction, but inspecting the webview from Google chrome shows that neither the cookie or sessionStorage item has been set.The application has a login screen, which communicates with the server and receives a authentication token which we (in our current native applications) push to the webviews as a cookie; as our web portal applications use cookie based authentication. Some newer apps use sessionStorage, but that's another issue.
It would be nice to have this feature implemented.
Below is a the code used to display the webview in my application.