Partilhar via


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 EnhancedSecurityModeLevel 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

Applies to