Tagged: font, not loading
-
AuthorPosts
-
October 29, 2020 at 10:34 pm #1256890
Fonts and FontAwesome icons are not loading. I keep getting this message: “Access to font at ‘(…)’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
October 29, 2020 at 11:49 pm #1256931Hey devmeydes,
Can you please share the website link too?
Best regards,
VictoriaOctober 30, 2020 at 12:07 am #1256937Yeah, I seem to have a habit of leaving that out.
October 31, 2020 at 7:09 pm #1257301Hi devmeydes,
I have checked your site and I can see those icons are served via CDN: https://secureservercdn.net/
Please disable CDN, if you’re on Godaddy there’s a setting that you can turn off ( based on another enfold users who had similar issue: https://kriesi.at/support/topic/social-icons-not-showing-6/ )
if you can’t find it or not using godaddy then you can try to ask for your hosting provider to do it.Best regards,
NikkoDecember 14, 2020 at 5:30 pm #1267220Hi Nikko,
I have the exact same problem. My client has hosted their site with GoDaddy. I get this error:
Access to font at ‘https://secureservercdn.net/160.153.138.219/a0x.891.myftpupload.com/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/fonts/entypo-fontello.ttf’ from origin ‘https://vs4business.co.uk’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
However, I don’t think that ‘switching off the CDN’ is a good solution. Yes it brings back the icons, but then the site is not benefitting from the CDN.
I have found another thread that says to add this code to the .htaccess file:
<FilesMatch “.(ttf|otf|woff)$”>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin “*”
</IfModule>
</FilesMatch>I have done this and it did not work.
I have spent so much time searching for solutions to this. If you have a solution I would love to hear it. The site in question is: http://www.vs4business.co.uk
December 15, 2020 at 8:22 am #1267386Hi Mark Clover,
The code you posted is the standard solution, which is in the documentation: https://kriesi.at/documentation/enfold/icon/#troubleshoot
It is tested to work properly on all CDNs (other solutions are basically just a variation of it) and the only exception is the one coming from Godaddy’s chosen CDN secureservercdn.net.
I haven’t found other workaround as well except for disabling CDN in Godaddy.
You can check further information on CORS in MDN: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORSBest regards,
NikkoDecember 17, 2020 at 11:18 am #1268077GoDaddy CDN Update:
It seems that adding the code to the .htaccess file does indeed work with GoDaddy after all. You just have to be patient.
Immediately after adding the code, no amount of emptying caches and refreshing was going to make the icons reappear. However over the subsequent couple of days, browser by browser they started reappearing.I now have the Enfold theme installed on Godaddy with the CDN activated and with my icons in place it seems.
Mark.
December 17, 2020 at 9:52 pm #1268219Hi Mark,
Glad you got it working for you! :)
Thank you for the update.
If you need further assistance please let us know.
Best regards,
VictoriaFebruary 11, 2021 at 5:19 am #1279652Mark what code did you end up using on your .htaccess file??? I’m trying to solve with GoDaddy also, but want to get the code snippet correct. Hoping you can help
February 11, 2021 at 5:20 am #1279653Hoping someone can help
February 11, 2021 at 9:15 am #1279687Hey zebravision,
Please provide a link to the site/page in question.
Best regards,
Jordan ShannonFebruary 11, 2021 at 10:03 am #1279694This reply has been marked as private.February 11, 2021 at 10:04 am #1279695don’t worry however the problem has resolved itself. Thanks
February 11, 2021 at 1:25 pm #1279746Hi zebravision,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Fonts and FontAwesome icons are not loading’ is closed to new replies.