pub fn cors_layer(
additional_allowed_origins: Vec<Uri>,
additional_allowed_headers: &[HeaderName],
additional_exposed_headers: &[HeaderName],
) -> CorsLayer
Expand description
CORS layer where the common HTTP methods, headers, and localhost are all allowed by default.