Function mz_http_util::build_cors_allowed_origin
source · pub fn build_cors_allowed_origin<'a, I>(allowed: I) -> AllowOriginwhere
I: IntoIterator<Item = &'a HeaderValue>,
Expand description
Construct a CORS policy to allow origins to query us via HTTP. If any bare ‘’ is passed, this allows any origin; otherwise, allows a list of origins, which can include wildcard subdomains. If the allowed origin starts with a ‘’, allow anything from that glob. Otherwise check for an exact match.