Function jsonrpc_server_utils::cors::get_cors_allow_headers[][src]

pub fn get_cors_allow_headers<T: AsRef<str>, O, F: Fn(T) -> O>(
    headers: impl Iterator<Item = T>,
    requested_headers: impl Iterator<Item = T>,
    cors_allow_headers: &AccessControlAllowHeaders,
    to_result: F
) -> AllowCors<Vec<O>>

Validates if the AccessControlAllowedHeaders in the request are allowed.