0

Passing login details to new window using Webbrowser control Is there a way to implement this functionality in WebView2?

I have tried the option of navigating popup url to 2nd webview2 control with e.handled = true combination but this code is not working when 2nd website navigated from popup window takes login details from main website automatically(which cannot be passed while navigating through code)

RD Seeker
  • 1
  • 1
  • Please include the code you have tried (at least your NewWindowRequested event). Also, what do you mean by passing login details automatically? If the second WebView2 you create is from the same CoreWebView2Environment, then they will share state (cookies, cached auth, localStorage, indexedDB and so on) so if auth is passed that way make sure your WebView2s are from the same environment. Or perhaps auth is passed via script from the parent window - in which case be sure to set the CoreWebView2NewWindowRequestedEventArgs.NewWindow property to the 2nd CoreWebView2 of your popup window. – David Risney Sep 01 '23 at 22:27

0 Answers0