Function jsonrpc_http_server::cors_allow_origin[][src]

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.