-
I have List cookie = new List(); <---- cookie list 14 string NetScape How can I use the cookie list? This method did not help me |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Winforms Webview2 ver. - 1.0.774.44 |
Beta Was this translation helpful? Give feedback.
-
Hey @ZalupaSlonika1488 - Can you add some context on what you are trying to do here? What did you try and what problems did you run into? |
Beta Was this translation helpful? Give feedback.
-
Hi. I wanted to log in to the site using cookies. I tried different methods, but I never managed to send 14 cookies to the site. Maybe you know how to do it? Either via Cookies or via AddHeaders. I will be extremely grateful for any help. Unfortunately, I don't have any code left. |
Beta Was this translation helpful? Give feedback.
-
Sure thing! You should be able to get the list of cookies by using WebView2.CoreWebView2.CookieManager, and then adding the cookies you want using CookieManager.AddOrUpdateCookie(...). Can you give that a try? |
Beta Was this translation helpful? Give feedback.
Sure thing!
You should be able to get the list of cookies by using WebView2.CoreWebView2.CookieManager, and then adding the cookies you want using CookieManager.AddOrUpdateCookie(...). Can you give that a try?