Sunday, December 11, 2016

Azure returning a 404 for woff files

This is actually a configuration error, as described here

http://www.codepal.co.uk/show/WOFF_files_return_404_in_Azure_Web_Sites

The solution was to add the following to the web.config:


  <system.webServer>
    <staticContent>
      <mimeMap fileExtension="woff" mimeType="application/font-woff" />
      <mimeMap fileExtension="woff2" mimeType="application/font-woff" /> 

    </staticContent>