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 #1256931
Can you please share the website link too?
VictoriaOctober 30, 2020 at 12:07 am #1256937October 31, 2020 at 7:09 pm #1257301
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.
NikkoDecember 14, 2020 at 5:30 pm #1267220
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/188.8.131.52/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:
Header set Access-Control-Allow-Origin “*”
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.ukDecember 15, 2020 at 8:22 am #1267386
Hi 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/CORS
NikkoDecember 17, 2020 at 11:18 am #1268077
GoDaddy 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 #1268219
Glad you got it working for you! :)
Thank you for the update.
If you need further assistance please let us know.
VictoriaFebruary 11, 2021 at 5:19 am #1279652
Mark 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 helpFebruary 11, 2021 at 5:20 am #1279653February 11, 2021 at 9:15 am #1279687
Please provide a link to the site/page in question.
Jordan ShannonFebruary 11, 2021 at 10:03 am #1279694February 11, 2021 at 10:04 am #1279695February 11, 2021 at 1:25 pm #1279746
- The topic ‘Fonts and FontAwesome icons are not loading’ is closed to new replies.