pub fn cors_allow_origin(
request: &Request<Body>,
cors_domains: &Option<Vec<AccessControlAllowOrigin>>,
) -> AllowCors<HeaderValue>
Expand description
Returns a CORS AllowOrigin header that should be returned with that request.
pub fn cors_allow_origin(
request: &Request<Body>,
cors_domains: &Option<Vec<AccessControlAllowOrigin>>,
) -> AllowCors<HeaderValue>
Returns a CORS AllowOrigin header that should be returned with that request.