Add mime type to web.config ASP.NET

To add mime-type to web.config simply add the following lines to System.WebServer section in web.config:

 

<system.webServer>
	<staticContent>
	  <remove fileExtension=".otf" />
	  <mimeMap fileExtension=".otf" mimeType="application/x-font-otf" />
	</staticContent>
</system.webServer>
Leave a reply