Remove double rootind

This commit is contained in:
2025-08-03 17:28:03 +02:00
parent fd080b2e64
commit a423bdfa38

View File

@@ -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 lauthentification
app.UseSession();
app.UseAuthorization();
// Route par défaut