From 57f4cb7dda3f0fcd2438a607f78dff9f2d06356c Mon Sep 17 00:00:00 2001 From: NekuraMew Date: Fri, 25 Jul 2025 18:24:50 +0000 Subject: [PATCH] Update Startup.cs --- Startup.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Startup.cs b/Startup.cs index 6d57a66..958d6b4 100644 --- a/Startup.cs +++ b/Startup.cs @@ -13,7 +13,6 @@ namespace FreelancerListServer services.AddControllers().AddNewtonsoftJson(); // Für JSON-Serialisierung services.AddSingleton(); services.AddSingleton(); - // Optional: CORS aktivieren services.AddCors(options => { options.AddPolicy("AllowAll", builder => @@ -31,7 +30,7 @@ namespace FreelancerListServer } app.UseRouting(); - app.UseCors("AllowAll"); // Optional: CORS aktivieren + app.UseCors("AllowAll"); app.UseEndpoints(endpoints => { endpoints.MapControllers();