var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.UseCors();
app.Run();
error
Multiple constructors accepting all given argument types have been found in type 'Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware'. There should only be one applicable constructor.