public Task <bool> IsOriginAllowedAsync(string origin)
        {
            var distinctOrigins = _clientprovider.QueryAllowedCorsOrigins();

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

            _logger.LogDebug("Origin {origin} is allowed: {originAllowed}", origin, isAllowed);

            return(Task.FromResult(isAllowed));
        }