Firefox cross domain font embedding

Firefox has a limitation for cross domain font embedding in that it does not allow you to embed from another website. This .htaccess snippet allows you to bypass this limitation and embed fonts located on another webserver.

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

Leave a Reply

Your email address will not be published. Required fields are marked *