Skip to main content

normalize_public_origin

Function normalize_public_origin 

Source
pub(crate) fn normalize_public_origin(origin: &str) -> Result<String, String>
Expand description

The one origin a loopback sign-in accepts besides srv’s own: http://127.0.0.1:<port>, the other end of a tunnel. Never a real host name, localhost, another address or https: a browser on a non-loopback origin needs a design of its own (SPEC_HEADLESS_SERVER_PACKAGE_AND_LOCAL_WEB_UI §3).