Skip to content

wv2HostResourceAccessKind

How the WebView2 runtime should treat a virtual hostname mapped to a local folder by SetVirtualHostNameToFolderMapping --- whether pages on other origins are allowed to fetch from it. Mirrors the COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND enumeration.

ConstantValueDescription
wv2ResourceDeny0Only pages served from the same virtual hostname may load resources from the mapped folder.
wv2ResourceAllow1Default --- any page may load resources from the mapped folder.
wv2ResourceDenyCors2Same as wv2ResourceAllow, but cross-origin requests are subject to the usual CORS checks.

twinBASIC and LOGO copyright of "WaynePhillipsEA" author