Function jsonrpc_http_server::cors::get_cors_allow_origin
source · pub fn get_cors_allow_origin(
origin: Option<&str>,
host: Option<&str>,
allowed: &Option<Vec<AccessControlAllowOrigin, Global>>
) -> AllowCors<AccessControlAllowOrigin>
Expand description
Returns correct CORS header (if any) given list of allowed origins and current origin.