Last Updated: February 25, 2016
·
1.524K
· lenny

Font-face loading in Firefox

When you are using an external font-face in a webpage, Firefox won't load it if it is hosted on a different domain than the domain of the webpage.

You can force Firefox to load external fonts by creating an .htaccess file on the domain serving the font:

<FilesMatch ".(ttf|otf|eot)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>