.htaccess rule to allow cross-site embedded font sharing in Firefox


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



Copy this code and paste it in your HTML
  1. # example Apache .htaccess file to add access control header
  2.  
  3. <FilesMatch "\.(ttf|otf)$">
  4. <IfModule mod_headers.c>
  5. Header set Access-Control-Allow-Origin "*"
  6. </IfModule>
  7. </FilesMatch>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.