-
AuthorPosts
-
March 11, 2017 at 4:20 am #759233
I have a font problem also on my site http://eindhovenboxcup.com/:
Access to Font at ‘http://fonts.gstatic.com/s/opensans/v13/cJZKeOuBrn4kERxqtaUH3VtXRa8TVwTICgirnJhmVJw.woff2’ from origin ‘http://eindhovenboxcup.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://eindhovenboxcup.com’ is therefore not allowed access.
I dont have it for the custom fonts I use because they are stored on the server.
I tried put the code in htacces, with no result:# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> <FilesMatch "\.(ttf|otf|woff)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> </FilesMatch> # END WordPress
I see this now on many enfold websites , also yours…
Access to Font at ‘http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSugdm0LZdjqr5-oayXSOefg.woff2’ from origin ‘http://kriesi.at’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://kriesi.at’ is therefore not allowed access.
What is the solution to be able to see the fonts again?
- This topic was modified 7 years, 8 months ago by dutchweed.
March 11, 2017 at 10:20 pm #759477Hey dutchweed,
I believe this may help: http://kriesi.at/documentation/enfold/enable-cors/Best regards,
MikeMarch 12, 2017 at 1:38 am #759513Like I wrote, I already put that, however I’m not sure if I should put something inbetween the “*” ?
Access-Control-Allow-Origin “*”Because if not, it’s not working.
And I do get the same error at kriesi.at ?March 14, 2017 at 2:40 pm #760736Hi,
They show up fine on my end, attached a screenshot in private content field.
Please flush browser cache and refresh your page a few times – http://wiki.scratch.mit.edu/wiki/Hard_Refresh
Best regards,
YigitMarch 15, 2017 at 7:04 am #761171Thanks for your answer.
That didn’t work, now I downloaded the chrome extension: Allow-Control-Allow-Origin: *
And it works fine… I have the latest chrome and Windows 7, same on my laptop, same problem.
If I use other browser all works just fine.
A friend of mine has this problem also., so it’s not my computer only.March 16, 2017 at 7:26 am #761751Hi,
Did you try opening the site in an incognito window in Chrome? That should not use any caching at all.
Best regards,
RikardMarch 17, 2017 at 3:54 am #762303Yes, I tried that already, same thing. I updated firefox on my other computer and it does the same thing now..
Could it be related to my ISP?March 19, 2017 at 7:24 am #763102Hi,
I’m not sure but maybe it’s the network you are on, did you try resetting your router for instance?
Just to be clear; I don’t see the error message you reported in your first message, and I do see icons on your page. The scroll to top icon is showing on the front page for instance. Is there anything else wrong on your end? If so then please try to explain a bit further.
Best regards,
RikardMarch 19, 2017 at 10:15 am #763152Yes router is reset, it’s only the fonts problem, on all enfolds websites.I just tried it with your 2017 demo.
Soon as I enable that chrome extension, it works.
But I think it has something to do with my ISP, I am in Indonesia, internet is quite restricted here.
I see in pagesource they inject a script in every page I visit, that disappears when I use VPN.
The cors error doesn’t disappear when I use VPN.Well, thanks for trying to help out, it’s already a relief to know that most people don’t get the error.
March 20, 2017 at 5:38 am #763478 -
AuthorPosts
- You must be logged in to reply to this topic.