Posted By

demwunz on 05/18/11


Tagged

Firefox htaccess apache font-face woff


Versions (?)

Cross Domain Font embedding for Firefox


 / Published in: Apache
 

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

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

Report this snippet  

You need to login to post a comment.