update Program.cs
This commit is contained in:
@@ -29,6 +29,9 @@ builder.Services.AddDbContext<LibraryDbContext>();
|
||||
|
||||
// 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();
|
||||
Reference in New Issue
Block a user