Merge branch 'public-static-fix' into dev
This commit is contained in:
@@ -75,6 +75,10 @@ else
|
||||
// Antiforgery is required by Blazor form handling. Authentication / authorization
|
||||
// middleware is intentionally absent — this host is fully anonymous.
|
||||
app.UseAntiforgery();
|
||||
// UseStaticFiles runs before endpoint dispatch and ensures wwwroot/ files (e.g. /js/audio/*.js)
|
||||
// are served with correct Content-Type. MapStaticAssets alone can drop the header on
|
||||
// compressed assets; removing this call breaks the audio interop module in production.
|
||||
app.UseStaticFiles();
|
||||
|
||||
// Configure cache headers for Blazor WebAssembly assets
|
||||
if (app.Environment.IsDevelopment())
|
||||
|
||||
Reference in New Issue
Block a user