Return to Snippet

Revision: 46364
at May 18, 2011 00:06 by demwunz


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

Initial URL


Initial Description
This rule allows you to embed fonts cross domain. Especially good when you are serving your fonts from a CDN.

Initial Title
Cross Domain Font embedding for Firefox

Initial Tags
htaccess, apache

Initial Language
Apache