I am developing an email application where I would like to display mail messages in WebView2. I would like to give a choice to the users to download or not remote resources in Html mail messages(for security reasons). How can I cancel requested resource in WebView2?
I tried subscribing for the event webView.CoreWebView2.WebResourceRequested += CoreWebView2_WebResourceRequested;
but when the event handler is invoked I don't see a way to cancel the request.