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();