cors_header

Function cors_header 

Source
pub fn cors_header(
    request: &Request,
    cors_domains: &Option<Vec<AccessControlAllowOrigin>>,
) -> CorsHeader<AccessControlAllowOrigin>
Expand description

Returns a CORS header that should be returned with that request.