Cross Domain Font embedding for Firefox

/ Published in: Apache
Save to your folder(s)

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

Copy this code and paste it in your HTML
  1. <FilesMatch "\.(ttf|otf|eot|woff)$">
  2. <IfModule mod_headers.c>
  3. Header set Access-Control-Allow-Origin ""
  4. </IfModule>
  5. </FilesMatch>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.