update Program.cs
This commit is contained in:
@@ -29,6 +29,9 @@ builder.Services.AddDbContext<LibraryDbContext>();
|
|||||||
|
|
||||||
// On construit l'application en lui donnant vie
|
// On construit l'application en lui donnant vie
|
||||||
WebApplication app = builder.Build();
|
WebApplication app = builder.Build();
|
||||||
|
|
||||||
|
app.UseCors();
|
||||||
|
|
||||||
app.UseAuthentication()
|
app.UseAuthentication()
|
||||||
.UseAuthorization()
|
.UseAuthorization()
|
||||||
.UseFastEndpoints(options =>
|
.UseFastEndpoints(options =>
|
||||||
@@ -40,6 +43,5 @@ app.UseAuthentication()
|
|||||||
|
|
||||||
// app.UseHttpsRedirection();
|
// app.UseHttpsRedirection();
|
||||||
|
|
||||||
app.UseCors();
|
|
||||||
|
|
||||||
app.Run();
|
app.Run();
|
||||||
Reference in New Issue
Block a user