Tuesday, April 5, 2016

Woff2 font giving 404 error in console

If you are using a font face which has the extension of woff2, by default users may get a 404 error when attempting to access the resource. The MIME type for woff2 will need to be added to IIS for the website. This can be done as follows:
  1. Open up IIS manager
  2. Select the server name OR a given web site
  3. Click the MIME types button


  4. On the right hand actions pane, click Add
  5. Enter .woff2 as the extension and application/font-woff2 as the mime type


  6. The font should now load correctly

No comments:

Post a Comment