fix: add UseStaticFiles() after UseAntiforgery() so JS audio module is served with correct Content-Type in production

This commit is contained in:
daniel-c-harvey
2026-06-04 17:40:10 -04:00
parent 194a76ce4c
commit 757c1d5c85
+1
View File
@@ -75,6 +75,7 @@ else
// Antiforgery is required by Blazor form handling. Authentication / authorization
// middleware is intentionally absent — this host is fully anonymous.
app.UseAntiforgery();
app.UseStaticFiles();
// Configure cache headers for Blazor WebAssembly assets
if (app.Environment.IsDevelopment())