16 items | 2 visits
Resources for applying HTML5 and CSS3 today.
Updated on Dec 08, 14
Created on Jan 09, 12
Category: Computers & Internet
URL:
"Another launch bug was that the icon font I was using, which worked great in local development, stopped working in production in Firefox and IE 9. It was because I use a CDN on the production site and those browsers disallow loading @font-face fonts across domains. That is, unless they are served with a special header that allows it. A little of this in my .htaccess file to do that:
<FilesMatch "\.(woff|eot|svg|ttf)">
Header set Access-Control-Allow-Origin *
</FilesMatch>
It worked! Thankfully, because NetDNA honors the headers set by the original files. Good work, NetDNA.
"
Another launch bug was that the icon font I was using, which worked great in local development, stopped working in production in Firefox and IE 9. It was because I use a CDN on the production site and those browsers disallow loading @font-face fonts across domains. That is, unless they are served with a special header that allows it. A little of this in my .htaccess file to do that:
<FilesMatch "\.(woff|eot|svg|ttf)"> Header set Access-Control-Allow-Origin * </FilesMatch>
It worked! Thankfully, because NetDNA honors the headers set by the original files. Good work, NetDNA.
16 items | 2 visits
Resources for applying HTML5 and CSS3 today.
Updated on Dec 08, 14
Created on Jan 09, 12
Category: Computers & Internet
URL: