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…