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