WPF WebView2 - how to enable safe browsing

Viewed 86

In my webappplication, there is function trigger download ".eml" file then the webview2 (edge) will alert the message "File was blocked because this type of file can harm your device". I know this is the default protected behavior of browser but normally we can ignore it by enabling safe browsing mode. So how to I can enable it in WebView2? Or how can I handle it in C# code. My web application is implemented by Blazor Server technology

0 Answers
Related