Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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&#8217; from origin ‘http://kriesi.at&#8217; has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://kriesi.at&#8217; is therefore not allowed access.

    What is the solution to be able to see the fonts again?

    • This topic was modified 7 years, 2 months ago by dutchweed.
    #759477

    Hey dutchweed,
    I believe this may help: http://kriesi.at/documentation/enfold/enable-cors/

    Best regards,
    Mike

    #759513

    Like 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 ?

    #760736

    Hi,

    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,
    Yigit

    #761171

    Thanks 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.

    #761751

    Hi,

    Did you try opening the site in an incognito window in Chrome? That should not use any caching at all.

    Best regards,
    Rikard

    #762303

    Yes, 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?

    #763102

    Hi,

    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,
    Rikard

    #763152

    Yes 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.

    #763478

    Hi,

    Ok, thanks for the feedback. Then I think the problem is occurring because you are using VPN.

    Best regards,
    Rikard

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.