fixed jxl files not being served
This commit is contained in:
parent
65383cf063
commit
415c1605b7
|
@ -4,6 +4,7 @@
|
|||
using Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption;
|
||||
using Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.StaticFiles;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Diagnostics.Metrics;
|
||||
|
@ -133,7 +134,13 @@
|
|||
app.UseExceptionHandler("/Error", createScopeForErrors: true);
|
||||
}
|
||||
|
||||
app.UseStaticFiles();
|
||||
app.UseStaticFiles(new StaticFileOptions {
|
||||
ContentTypeProvider = new FileExtensionContentTypeProvider {
|
||||
Mappings = {
|
||||
[".jxl"] = "image/jxl"
|
||||
}
|
||||
}
|
||||
});
|
||||
app.UseAntiforgery();
|
||||
|
||||
app.MapRazorComponents<App>().AddInteractiveServerRenderMode();
|
||||
|
|
Loading…
Reference in a new issue