When developing an application using .NET Framework 4.6 (MVC4/5), I used to add custom mime types in the web.config file, like this (this is the actual mime types I need to add in my app):
<system.webServer>
<staticContent>
<mimeMap fileExtension=".wasm" mimeType="application/wasm"/>
<mimeMap fileExtension="xap" mimeType="application/x-silverlight-app"/>
<mimeMap fileExtension="xaml" mimeType="application/xaml+xml"/>
<mimeMap fileExtension="xbap" mimeType="application/x-ms-xbap"/>
</staticContent>
How can I replicate this behaviour in a .NET Core? Is it possible to do it the same way?
UseStaticFiles
in your Configure method of your Startup class – Rishi