Skip to main content

per_run_origin

Function per_run_origin 

Source
fn per_run_origin(
    cli: &[String],
    env: Option<&str>,
) -> Result<Vec<String>, String>
Expand description

The origins to allow once AGENTMUX_ALLOWED_ORIGIN is taken into account. Unset or empty: --allowed-origin as given. Set: exactly that one origin, and nothing else (so a request from any other origin, including one an earlier launch allowed, is refused). It must be one https origin (a host, an optional port, no path, no wildcard, no list), and a --allowed-origin given too must name the same origin: srv refuses to start on a launch whose two forms disagree, rather than pick one.