jsonrpc_http_server::cors

Function get_cors_allow_headers

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

Validates if the AccessControlAllowedHeaders in the request are allowed.