public async Task <bool> IsOriginAllowedAsync(string origin)
        {
            var distinctOrigins = await _clientProvider.QueryAllowedCorsOriginsAsync();

            var isAllowed = distinctOrigins.Contains(origin, StringComparer.OrdinalIgnoreCase);

            return(isAllowed);
        }