Remove double rootind
This commit is contained in:
@@ -60,13 +60,8 @@ namespace administration
|
|||||||
app.UseStaticFiles();
|
app.UseStaticFiles();
|
||||||
|
|
||||||
app.UseRouting();
|
app.UseRouting();
|
||||||
|
|
||||||
// 💡 CORS doit être placé entre UseRouting et UseAuthorization
|
|
||||||
app.UseRouting();
|
|
||||||
|
|
||||||
app.UseCors("AllowFrontend");
|
app.UseCors("AllowFrontend");
|
||||||
|
app.UseSession();
|
||||||
app.UseSession(); // ✅ ici, avant l’authentification
|
|
||||||
app.UseAuthorization();
|
app.UseAuthorization();
|
||||||
|
|
||||||
// Route par défaut
|
// Route par défaut
|
||||||
|
|||||||
Reference in New Issue
Block a user