Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable cookies in WebViews #3609

Closed
doorlay opened this issue Jul 13, 2024 · 6 comments
Closed

Enable cookies in WebViews #3609

doorlay opened this issue Jul 13, 2024 · 6 comments
Labels
awaiting feedback More information is required from the requestor Enhancement New feature or request

Comments

@doorlay
Copy link

doorlay commented Jul 13, 2024

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 doorlay added the Enhancement New feature or request label Jul 13, 2024
@doorlay
Copy link
Author

doorlay commented Jul 13, 2024

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

@leaanthony
Copy link
Member

How is it going?

@leaanthony leaanthony added the awaiting feedback More information is required from the requestor label Aug 18, 2024
@doorlay
Copy link
Author

doorlay commented Aug 25, 2024

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

@pavelbinar
Copy link
Contributor

Hi guys, I am trying to implement the authentication service https://clerk.com/ into the Wails but having the problem that the JWT is stored in the cookies...

@leaanthony You may have better overview how other using the authentication services inside or in combination of Wails or perhaps how to temporarily monkey patch this issue.

@leaanthony
Copy link
Member

There's a chance it works already on Windows. There was someone who wanted to do a PR for this but I haven't heard back for a while.

@leaanthony
Copy link
Member

Moving (and linking) all cookie issues to #3908

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting feedback More information is required from the requestor Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants