-
AuthorPosts
-
December 5, 2015 at 1:42 am #547318
The icons for my site are no longer rendering in chrome. There is simply a rectangle in their place.
I have updated the .htaccess file multiple times according to the instructions provided here: http://kriesi.at/documentation/enfold/enable-cors/.
Sill after clearing the cache, I’m receiving the following error: Font from origin ‘http://www.tagins.net’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://tagins.net’ is therefore not allowed access.
Do you have any other suggestions on this?
December 5, 2015 at 9:47 am #547401Hi aaronsjohnson12,
Are you loading the font from another site/server? That is likely why you are getting that error. Post a link to the site in question so that we can have a closer look.
Best regards,
RikardDecember 6, 2015 at 2:11 am #547518Hi Rikard,
I’m not loading the font from another server that I’m aware. Here is the link: http://www.tagins.net
December 7, 2015 at 4:56 am #547749Hi,
Icons are loading fine on my end using Chrome, did you manage to get it fixed?
Regards,
RikardDecember 7, 2015 at 7:15 pm #548231So I haven’t done anything to it. After I saw your message I looked into it some more and what I found is that the icons seem to be pulling just fine on Chrome when it is a running on a Mac. Chrome on a PC, however, will not pull them up.
I have tried this on 2 different Macs and 5 different PCs — all with the same results.
-Aaron
December 7, 2015 at 7:35 pm #548238So looking into it even further. If you type in http://www.tagins.net the fonts will render. if you just type in tagins.net, they will not.
December 8, 2015 at 7:09 am #548540Hey!
What is the url in the Settings > General > “Site Address (URL)” field? Is it set to ” http://www.tagins.net” or “http://tagins.net”? Please set it to “http://www.tagins.net”. If it doesn’t work, try this in the .htaccess file:
<FilesMatch "\.(ttf|otf|woff)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin http://www.tagins.net </IfModule> </FilesMatch>Make sure that the .htaccess file is located in the wp root directory.
Cheers!
IsmaelDecember 8, 2015 at 8:36 am #548584I confirmed the URL in Settings>General>Site Address is http://www.tagins.net.
I then added the code above to the .htaccess file, but it was still giving me the same problem for some reason.
I think I may have found a workaround, though. I added some additional code to the .htaccess file that forces the URL to redirect to the www prefix. That seems to be working for now. Still really strange I couldn’t ever get the code above to work, but I think we are now good to go. I’ll continue to watch over the next few days.
Thanks again for your help.
December 9, 2015 at 4:46 am #549446 -
AuthorPosts
- You must be logged in to reply to this topic.
