From a423bdfa3868359ab1301d021f1941d943748222 Mon Sep 17 00:00:00 2001 From: Byakuya Date: Sun, 3 Aug 2025 17:28:03 +0200 Subject: [PATCH] Remove double rootind --- Program.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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