From 6e2e0f973627d542cdb250d7cfcf3a7d4108a6d0 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Tue, 9 Dec 2025 18:21:05 +0100 Subject: [PATCH] update Program.cs --- ApiEfCoreLibrary/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ApiEfCoreLibrary/Program.cs b/ApiEfCoreLibrary/Program.cs index ec25732..bc4a470 100644 --- a/ApiEfCoreLibrary/Program.cs +++ b/ApiEfCoreLibrary/Program.cs @@ -29,6 +29,9 @@ builder.Services.AddDbContext(); // On construit l'application en lui donnant vie WebApplication app = builder.Build(); + +app.UseCors(); + app.UseAuthentication() .UseAuthorization() .UseFastEndpoints(options => @@ -40,6 +43,5 @@ app.UseAuthentication() // app.UseHttpsRedirection(); -app.UseCors(); app.Run(); \ No newline at end of file