From 3613199917cf0372fc96adc71ea947f9dec2eb02 Mon Sep 17 00:00:00 2001 From: ig Date: Mon, 20 Mar 2023 10:31:24 +0100 Subject: [PATCH] tentatively remove cors (we don't need it) --- csharp/App/Backend/Program.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/csharp/App/Backend/Program.cs b/csharp/App/Backend/Program.cs index 686e29d7f..385c6250b 100644 --- a/csharp/App/Backend/Program.cs +++ b/csharp/App/Backend/Program.cs @@ -22,7 +22,6 @@ public static class Program c.SupportNonNullableReferenceTypes(); }); - var app = builder.Build(); if (app.Environment.IsDevelopment()) @@ -31,7 +30,7 @@ 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();