Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Cannot access https fonts from http Re: Cannot access https fonts from http

#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