Table of Contents

Enum CoreWebView2ServerCertificateErrorAction

Namespace
Microsoft.Web.WebView2.Core
Assembly
Microsoft.Web.WebView2.Core.dll

Specifies the action type when server certificate error is detected to be used in the CoreWebView2ServerCertificateErrorDetectedEventArgs.

public enum CoreWebView2ServerCertificateErrorAction

Fields

AlwaysAllow = 0

Indicates to ignore the warning and continue the request with the TLS certificate. This decision is cached for the RequestUri's host and the server certificate in the session.

Cancel = 1

Indicates to reject the certificate and cancel the request.

Default = 2

Indicates to display the default TLS interstitial error page to user for page navigations. For others TLS certificate is rejected and the request is cancelled.