Skip to main content

loopback_allowed

Function loopback_allowed 

Source
pub fn loopback_allowed(
    url: &str,
    opener_url: &str,
    own_origins: &[String],
) -> bool
Expand description

May a page on loopback open a window to url, also on loopback? Only on its own origin (a local dev site opening its own popup), and never one of AgentMux’s own (own_origins: its frontend and srv), which a page must not be able to put in front of the person (native-popups spec §3).