diff --git a/Program.cs b/Program.cs index c36f061..4326cf5 100644 --- a/Program.cs +++ b/Program.cs @@ -60,13 +60,8 @@ namespace administration app.UseStaticFiles(); app.UseRouting(); - - // 💡 CORS doit être placé entre UseRouting et UseAuthorization - app.UseRouting(); - app.UseCors("AllowFrontend"); - - app.UseSession(); // ✅ ici, avant l’authentification + app.UseSession(); app.UseAuthorization(); // Route par défaut