Remove Chrome DevTools Font Warning
When loading webfonts in Google Chrome the DevTools can display this warning:
Resource interpreted as Font but transferred with MIME type font/x-woff
This means the webserver is serving the font file with incorrect MIME type.
You can ignore the warning, but when developing it can be annoying to see this warning every time - for every font loaded.
To correct the MIME type and get rid of the message, just edit your .htaccess and add
AddType application/font-woff .woff
That's all!
Written by Marco Cervellin
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Google
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#