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