Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Release notes for Microsoft Edge WebView2 Prerelease SDK, release date: Nov. 11, 2026.
NuGet package for WebView2 SDK 1.0.4392-prerelease
For full API compatibility, this Prerelease version of the WebView2 SDK requires the WebView2 Runtime that ships with Microsoft Edge version 159.0.4392.0 or later; see Preview Runtime 159.0.4402.13 (Nov. 21, 2026).
Detailed contents:
Promotions to Phase 2 (Stable in Prerelease)
The following APIs skipped Phase 1: Experimental in Prerelease, and have been directly added to Phase 2: Stable in Prerelease, and are included in this Prerelease SDK.
Separate permissions for accessing local-network devices vs. services running on the same computer
There are now separate permissions for accessing local-network devices (such as printers), and services running on the same computer (such as localhost). To allow one type of access while blocking the other type of access, use the new members of the CoreWebView2PermissionKind enum: LocalNetwork and LoopbackNetwork, as follows.
When web content requests access, the app receives a PermissionRequested event. Use the event argument's CoreWebView2PermissionKind to identify the type of access that's requested, and then use CoreWebView2Profile.SetPermissionState to set the CoreWebview2PermissionState to either Allow or Deny. An app can also use SetPermissionState to save a permission for a website's origin, such as https://example.com. Service workers and shared workers require a stored grant; they do not raise a PermissionRequested event.
To use LocalNetwork and LoopbackNetwork, set AdditionalBrowserArguments to --enable-features=msWebViewAllowLocalNetworkAccessChecks in the environment options, before creating the WebView2 environment. The feature remains off by default, while we gather feedback during the initial rollout. We plan to enable this feature by default, after feedback and validation demonstrate its readiness.
- CoreWebView2PermissionKind Enum
LocalNetwork- new enum member.LoopbackNetwork- new enum member.
Use the above, new enum members along with the following, established APIs:
CoreWebView2EnvironmentOptions.AdditionalBrowserArguments Property - Enable local network access (LNA) checks.
CoreWebView2.PermissionRequested Event - Register the app's permission handler.
CoreWebView2PermissionRequestedEventArgs.PermissionKind Property - Identify the requested access.
CoreWebView2PermissionRequestedEventArgs.State Property - Allow or deny the requested access.
CoreWebView2Profile.SetPermissionStateAsync Method - Configure a permission by passing in the permission kind, website origin, and desired state.