From a98b47a62f8be21ebffa8e551c1c538226ada9e8 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Thu, 8 Jun 2023 10:26:37 +0200 Subject: [PATCH] Reorder routing middleware in All In One bundle project --- src/bundles/Elsa.AllInOne.Web/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundles/Elsa.AllInOne.Web/Program.cs b/src/bundles/Elsa.AllInOne.Web/Program.cs index c921b97c6..80323f2e5 100644 --- a/src/bundles/Elsa.AllInOne.Web/Program.cs +++ b/src/bundles/Elsa.AllInOne.Web/Program.cs @@ -64,9 +64,9 @@ if (!app.Environment.IsDevelopment()) app.UseHttpsRedirection(); app.MapHealthChecks("/health"); +app.UseRouting(); app.UseCors(); app.UseStaticFiles(); -app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseWorkflowsApi();