Home › Forums › CSS › Cannot access https fonts from http › Re: Cannot access https fonts from http
June 12, 2013 at 10:06 am
#138456
tannercampbell
Participant
The answer to this problem was this bit of code in the htaccess file:
Header set Access-Control-Allow-Origin “*”
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/font-woff .woff
Apparently Firefox (and I’m guessing IE) doesn’t allow cross-domain fonts, and since the page experiencing the issue was http while the rest of the site was https – that must count as cross-domain. Here’s a site that does a better job of explaining it:
http://www.red-team-design.com/firefox-doesnt-allow-cross-domain-fonts-by-default