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();