Last Updated: February 25, 2016
·
1.788K
· 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>

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

The website is part of the attack surface, not only the API behind it. Every script, iframe, and tag on a public page is code that did not go through the same review as the backend.

Security insights from Cside