pub fn server_origin(url: &str) -> Result<String>
Validates a server URL for encrypted transport and returns its origin.