CoreWebView2OriginFeature Enum

Definition

Specifies the feature types that can be configured for origins.

public enum CoreWebView2OriginFeature
type CoreWebView2OriginFeature = 
Public Enum CoreWebView2OriginFeature
Inheritance
CoreWebView2OriginFeature

Fields

Name Value Description
EnhancedSecurityMode 0

Specifies enhanced security mode settings for the origin. Enhanced Security Mode provides additional protections by disabling or restricting certain web platform features that may pose security risks, such as JIT compilation, certain JavaScript APIs, and other potentially dangerous capabilities. This feature is particularly useful for protecting against zero-day exploits and reducing attack surface. When enabled for an origin, that origin will have Enhanced Security Mode applied; when disabled, normal security mode is used. Enhanced security mode can be configured globally via EnhancedSecurityModeState API on profile. If Enhanced Security Mode is not configured for an origin, the global profile setting will apply.

        For more information about Enhanced Security Mode, see:
        https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/security
ReputationChecking 1

Specifies per-origin reputation checking settings. Reputation checking protects users from phishing and malware by checking navigated URLs and downloaded files against a cloud-based reputation service. Setting this feature to Disabled for an origin will skip reputation checks for navigations and downloads from that origin, effectively allow-listing it. If reputation checking is not configured for an origin, it is governed by IsReputationCheckingRequired. Note: If IsReputationCheckingRequired is set to false, setting this feature to Enabled for a specific origin will not re-enable reputation checks for that origin. IsReputationCheckingRequired takes precedence.

        Warning: Disabling reputation checking for an origin bypasses phishing and
        malware reputation checks. Only disable for fully trusted, app-controlled
        origins where the content is known to be safe.

Applies to