wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
24.3k stars 1.16k forks source link

Enable cookies in WebViews #3609

Open doorlay opened 1 month ago

doorlay commented 1 month ago

Is your feature request related to a problem? Please describe.

I'd like to be able to grab cookies from an active WebView on all OSs.

Describe the solution you'd like

Adding a CookieManager object to manage cookies for a session. This would allow users to call GetCookiesAsync (or something of that sort) to retrieve cookies for a given URI, exposing them to the WebView.

Describe alternatives you've considered

No response

Additional context

MacOS docs: https://developer.apple.com/documentation/webkit/wkwebsitedatastore#overview Linux docs: https://webkitgtk.org/reference/webkit2gtk/2.24.2/WebKitCookieManager.html Microsoft docs: https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2cookiemanager?view=webview2-winrt-1.0.2478.35

doorlay commented 1 month ago

I'm planning on beginning work on this feature in the next week.

leaanthony commented 2 weeks ago

How is it going?

doorlay commented 1 week ago

@leaanthony Unfortunately I haven't found the time to start work yet.