How to get fonts loading cross domain in Firefox How to get fonts loading cross domain in Firefox apache apache

How to get fonts loading cross domain in Firefox


Your webfont files are served in text/plain Content-Type instead of the proper one such as application/x-font-woff.

Try something like this in your apache config file see if it helps:

<Location /webfont>   Header set Access-Control-Allow-Origin "*"   AddType application/vnd.ms-fontobject .eot   AddType application/x-font-ttf .ttf   AddType application/x-font-woff .woff</Location>


On your server you will need to add: Access-Control-Allow-Origin for fonts.
At .htaccess add:

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