firefox font face not working cross domain

Font Face not working in Firefox but OK in safari and chrome

@font-face {
font-family:’FontSiteSansCondensed’;
src:url(http://www.semenit.com/fonts/fontsitesans_condensed_macroman/FontSiteSans-Cond-webfont.eot);
src:local(‘☺’),url(http://www.semenit.com/fonts/fontsitesans_condensed_macroman/FontSiteSans-Cond-webfont.woff) format(‘woff’),url(http://www.semenit.com/fonts/fontsitesans_condensed_macroman/FontSiteSans-Cond-webfont.ttf) format(‘truetype’),url(http://www.semenit.com/fonts/fontsitesans_condensed_macroman/FontSiteSans-Cond-webfont.svg#webfontYkbWDHlk) format(‘svg’);font-weight:normal;font-style:normal; }

body {
text-decoration:none;font-family:’FontSiteSansCondensed’,’Helvetica Neue’,Helvetica,Arial,sans-serif;font-size:13px; }

 

If you want to use the font using the link (url) from your website, you will get a problem in Firefox browser.
The solution is you have to add this code into .htaccess in http://www.semenit.com

# BEGIN REQUIRED FOR WEBFONTS

AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/eot .eot
AddType font/otf .otf
AddType font/woff .woff

<FilesMatch “\.(ttf|otf|eot|woff)$”>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin “*”
</IfModule>
</FilesMatch>
# END REQUIRED FOR WEBFONTS

Pin It

This entry was posted on Monday, January 6th, 2014 at 7:02 am and is filed under htaccess. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.