コード例 #1
0
        public async Task <bool> IsOriginAllowedAsync(string origin)
        {
            var distinctOrigins = await _clientProvider.QueryAllowedCorsOriginsAsync();

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

            return(isAllowed);
        }