pub fn extract_origin(input: &str) -> Option<Origin>
Extracts the origin portion from a URL or origin-like string.