The easiest way would be adding the following to your Program.cs:
Program.cs
app.UseStaticFiles(new StaticFileOptions { ServeUnknownFileTypes = true });