public async Task <bool> IsOriginAvailable(string origin)
        {
            var allowedOrigins = await _cache.GetOrCreateAsync(AllOriginsCachePrefix, async (ce) =>
            {
                ce.SlidingExpiration  = TimeSpan.FromMinutes(5);
                ce.AbsoluteExpiration = DateTime.Now.AddHours(1);

                var origins = await _tenantsRepository.GetAllAllowedOriginsAsync();

                return(origins);
            });

            return(allowedOrigins.Contains(origin));
        }