I want to load Fontawesome from a CDN but I get
failed cross-origin request. Resource access is restricted
I know that to fix this a HTTP header should be added, but is there any way to avoid doing this?
I tried replacing
'../font/fontawesome-webfont.eot?v=3.2.0')
with full urls but it didnt help for some reason. Is there anything that can be done without the header?
You have to create .htaccess file on font folder with this text.
<FilesMatch ".(eot|ttf|svg|otf|woff|woff2)">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
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