Enum webview2_sys::HostResourceAccessKind [−][src]
#[repr(u32)] pub enum HostResourceAccessKind { Deny, Allow, DenyCors, }
Kind of cross origin resource access allowed for host resources during download.
Note that other normal access checks like same origin DOM access check and Content
Security Policy still apply.
The following table illustrates the host resource cross origin access according to
access context and COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND
.
Cross Origin Access Context | DENY | ALLOW | DENY_CORS
— | — | — | —
From DOM like src of img, script or iframe element| Deny | Allow | Allow
From Script like Fetch or XMLHttpRequest| Deny | Allow | Deny
Variants
All cross origin resource access is denied, including normal sub resource access as src of a script or image element.
All cross origin resource access is allowed, including accesses that are subject to Cross-Origin Resource Sharing(CORS) check. The behavior is similar to a web site sends back http header Access-Control-Allow-Origin: *.
Cross origin resource access is allowed for normal sub resource access like as src of a script or image element, while any access that subjects to CORS check will be denied. See Cross-Origin Resource Sharing for more information.
Trait Implementations
impl Clone for HostResourceAccessKind
[src]
impl Clone for HostResourceAccessKind
[src]fn clone(&self) -> HostResourceAccessKind
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for HostResourceAccessKind
[src]
impl Copy for HostResourceAccessKind
[src]impl Eq for HostResourceAccessKind
[src]
impl Eq for HostResourceAccessKind
[src]impl StructuralEq for HostResourceAccessKind
[src]
impl StructuralEq for HostResourceAccessKind
[src]Auto Trait Implementations
impl RefUnwindSafe for HostResourceAccessKind
impl RefUnwindSafe for HostResourceAccessKind
impl Send for HostResourceAccessKind
impl Send for HostResourceAccessKind
impl Sync for HostResourceAccessKind
impl Sync for HostResourceAccessKind
impl Unpin for HostResourceAccessKind
impl Unpin for HostResourceAccessKind
impl UnwindSafe for HostResourceAccessKind
impl UnwindSafe for HostResourceAccessKind