From 61114b728a7e1af91c1fd383cd352b134cdf8d51 Mon Sep 17 00:00:00 2001 From: "Wieland, Marc" Date: Fri, 22 May 2026 10:51:44 +0200 Subject: [PATCH] Auth integration --- Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Program.cs b/Program.cs index d82dff0..128ef7f 100644 --- a/Program.cs +++ b/Program.cs @@ -59,6 +59,10 @@ if (app.Configuration.GetValue("EnableHttpsRedirect", !app.Environment.IsDevelop app.UseHttpsRedirection(); } +// Statische Dateien (inkl. _framework/, _content/) vor Auth bedienen, +// damit Blazor-JS und MudBlazor-CSS nie durch Auth-Middleware geblockt werden +app.UseStaticFiles(); + app.UseAuthentication(); app.UseAuthorization();