Custom fonts not rendering

If you find you are having trouble rendering boostrap glythicons or font-awesome then its possible your service isn't allowing access for the font file types, this snippet should open up this access in apache, insert into your .htaccess file or apache config.

 


Author: Anonymous
Added: Tuesday, 05 May, 2015
Category: CSS
Tags: Apache , htaccess

Code

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

Comments