79074214

Date: 2024-10-10 11:43:27
Score: 2.5
Natty:
Report link

Above answer from @BenGeeBee did not work for me. However I found solution under ngx-extended-pdf-viewer repo in GitHub comment.

My application is running .NET 8, so adding below to program.cs file fixed the issue.

var provider = new FileExtensionContentTypeProvider();
provider.Mappings[".ftl"] = "text/plain"; 

app.UseStaticFiles(new StaticFileOptions
{
    ContentTypeProvider = provider
});
Reasons:
  • Blacklisted phrase (1): did not work
  • Has code block (-0.5):
  • User mentioned (1): @BenGeeBee
  • Low reputation (1):
Posted by: tuomis