fix: add UseStaticFiles() after UseAntiforgery() so JS audio module is served with correct Content-Type in production
This commit is contained in:
@@ -75,6 +75,7 @@ else
|
|||||||
// Antiforgery is required by Blazor form handling. Authentication / authorization
|
// Antiforgery is required by Blazor form handling. Authentication / authorization
|
||||||
// middleware is intentionally absent — this host is fully anonymous.
|
// middleware is intentionally absent — this host is fully anonymous.
|
||||||
app.UseAntiforgery();
|
app.UseAntiforgery();
|
||||||
|
app.UseStaticFiles();
|
||||||
|
|
||||||
// Configure cache headers for Blazor WebAssembly assets
|
// Configure cache headers for Blazor WebAssembly assets
|
||||||
if (app.Environment.IsDevelopment())
|
if (app.Environment.IsDevelopment())
|
||||||
|
|||||||
Reference in New Issue
Block a user