skip to Main Content

views CORS error, but you get data and it is visible C# (ASP .Net Core) – Asp.net

I have this configuration in my Startup method, apparently everything works fine services.AddCors(options => { options.AddPolicy("MyPolicy", builder => builder.WithOrigins("https://localhost:5000", "http://localhost:3000", "http://localhost:3001") .AllowAnyHeader() .WithMethods("PUT", "GET")); }); app.UseHttpsRedirection(); app.UseCors("MyPolicy"); app.UseRouting(); app.UseAuthorization(); But when I start to do tests with another url that…

VIEW QUESTION

Increase number until mets condition – Asp.net

I have creation of tenant Here is code var tenant = new Tenant(tenancyName, name) { IsActive = isActive, EditionId = editionId, SubscriptionEndDateUtc = subscriptionEndDate?.ToUniversalTime(), IsInTrialPeriod = isInTrialPeriod, ConnectionString = connectionString.IsNullOrWhiteSpace() ? null : SimpleStringCipher.Instance.Encrypt(connectionString) }; await CreateAsync(tenant); await _unitOfWorkManager.Current.SaveChangesAsync(); //To…

VIEW QUESTION
Back To Top
Search