diff --git a/Website/Program.cs b/Website/Program.cs index 3bf38ae..a48631e 100644 --- a/Website/Program.cs +++ b/Website/Program.cs @@ -3,6 +3,7 @@ using Hesketh.MecatolArchives.API.Client.Extensions; using Hesketh.MecatolArchives.Website.Components; using Hesketh.MecatolArchives.Website.Services; +using Microsoft.AspNetCore.StaticFiles; using MudBlazor.Services; var builder = WebApplication.CreateBuilder(args); @@ -31,6 +32,11 @@ if (app.Configuration.GetValue("Https", false)) app.UseHttpsRedirection(); +var provider = new FileExtensionContentTypeProvider(); +provider.Mappings[".otf"] = "application/x-font-otf"; +provider.Mappings[".ttf"] = "font/ttf"; + +app.UseStaticFiles(new StaticFileOptions { ContentTypeProvider = provider }); app.UseStaticFiles(); app.UseAntiforgery(); diff --git a/Website/web.config b/Website/web.config deleted file mode 100644 index 8959207..0000000 --- a/Website/web.config +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file