[−][src]Function jsonrpc_http_server::cors::get_cors_allow_headers
pub fn get_cors_allow_headers<T, O, F, impl Iterator- , impl Iterator
- >(
headers: impl Iterator- ,
requested_headers: impl Iterator- ,
cors_allow_headers: &AccessControlAllowHeaders,
to_result: F
) -> AllowCors<Vec<O>> where
F: Fn(T) -> O,
T: AsRef<str>,
impl Iterator- : Iterator<Item = T, Item = T> + Iterator,
Validates if the AccessControlAllowedHeaders
in the request are allowed.