diff --git a/csharp/App/Backend/Program.cs b/csharp/App/Backend/Program.cs index 385c6250b..39c324dc8 100644 --- a/csharp/App/Backend/Program.cs +++ b/csharp/App/Backend/Program.cs @@ -10,10 +10,6 @@ public static class Program var builder = WebApplication.CreateBuilder(args); - //builder.Services.AddHttpContextAccessor(); - //builder.Services.AddEndpointsApiExplorer(); - //builder.Services.AddCors(o => o.AddDefaultPolicy(p => p.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod())); - builder.Services.AddControllers(); builder.Services.AddSwaggerGen(c => { @@ -30,9 +26,8 @@ public static class Program app.UseSwaggerUI(); } - //app.UseCors(p => p.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod()) ; + app.UseCors(p => p.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod()) ; app.UseHttpsRedirection(); - //app.UseAuthorization(); app.MapControllers(); app.Run();