Remove double rootind
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user