I am using the latest version of FontAwesome like this:
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<!--[if IE 7]>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/css/font-awesome-ie7.min.css">
<![endif]-->
It works fine in Chrome, FireFox and Safari, but when I go to Internet Explorer 10 (Older versions has the same issue), I see this error:
CSS3117: @font-face failed cross-origin request. Resource access is restricted.
fontawesome-webfont.eot
CSS3117: @font-face failed cross-origin request. Resource access is restricted.
fontawesome-webfont.woff
I have tried to add the FileMatch to my .htaccess file, but that didn't do the trick.
I thought that using the CSS files from FontAwesomes CDN, eliminated IE errors..
Can someone please help me?
Add the line below in your .htaccess:
Header set Access-Control-Allow-Origin "*"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With