Answers for "add mime type for woff in web.config"

C#
0

add mime type for woff in web.config

<system.webServer>
  <staticContent>
     <!-- remove first in case they are defined in IIS already, which would cause a runtime error -->
     <remove fileExtension=".woff" />
     <remove fileExtension=".woff2" />
     <mimeMap fileExtension=".woff" mimeType="font/woff" />
     <mimeMap fileExtension=".woff2" mimeType="font/woff2" />
  </staticContent>
</system.webServer>
Posted by: Guest on June-14-2020

C# Answers by Framework

Browse Popular Code Answers by Language