Hey Folks!

During March of 2020, and possibly April, answers may be delayed more than it usually happens. This is caused by my personal situation that requires a lot of time from me to be dedicated elsewhere, and also because of the local things that are happening currently cause of the all things connected to "Corona Virus".

Please be patient, all answers are coming as soon as possible, even if I have to stay late at night :-)

Sorry for any inconvenience.

Air.
Before you ask please READ THIS

CORS issue

in FatMoon Posts: 5
Hello,

I have launched my website chrissawo.com yesterday. Today I am experiencing CORS issues (see below). Yesterday everything worked well, so I don´t know where it comes from and how to fix this.

Could someone please provide help here?

Thank you!
Access to font at 'https://chrissawo.com/wp-content/plugins/js_composer/assets/lib/bower/font-awesome/fonts/fontawesome-webfont.woff2?v=4.7.0' from origin 'https://www.chrissawo.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
fontawesome-webfont.woff2:1 Failed to load resource: net::ERR_FAILED
(index):1 Access to font at 'https://chrissawo.com/wp-content/plugins/js_composer/assets/css/lib/vc-open-iconic/fonts/vc_openiconic.woff?54101537' from origin 'https://www.chrissawo.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
vc_openiconic.woff:1 Failed to load resource: net::ERR_FAILED
(index):1 Access to font at 'https://chrissawo.com/wp-content/plugins/js_composer/assets/lib/bower/font-awesome/fonts/fontawesome-webfont.woff?v=4.7.0' from origin 'https://www.chrissawo.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
fontawesome-webfont.woff:1 Failed to load resource: net::ERR_FAILED
(index):1 Access to font at 'https://chrissawo.com/wp-content/plugins/js_composer/assets/lib/bower/font-awesome/fonts/fontawesome-webfont.ttf?v=4.7.0' from origin 'https://www.chrissawo.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
fontawesome-webfont.ttf:1 Failed to load resource: net::ERR_FAILED
(index):1 Access to font at 'https://chrissawo.com/wp-content/plugins/js_composer/assets/css/lib/vc-open-iconic/fonts/vc_openiconic.ttf?54101537' from origin 'https://www.chrissawo.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
vc_openiconic.ttf:1 Failed to load resource: net::ERR_FAILED
(index):1 Access to font at 'https://chrissawo.com/wp-content/plugins/everest-counter-lite/css/font-awesome/fonts/fontawesome-webfont.woff2?v=4.7.0' from origin 'https://www.chrissawo.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
fontawesome-webfont.woff2:1 Failed to load resource: net::ERR_FAILED
(index):1 Access to font at 'https://chrissawo.com/wp-content/plugins/everest-counter-lite/css/font-awesome/fonts/fontawesome-webfont.woff?v=4.7.0' from origin 'https://www.chrissawo.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
fontawesome-webfont.woff:1 Failed to load resource: net::ERR_FAILED
(index):1 Access to font at 'https://chrissawo.com/wp-content/plugins/everest-counter-lite/css/font-awesome/fonts/fontawesome-webfont.ttf?v=4.7.0' from origin 'https://www.chrissawo.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
fontawesome-webfont.ttf:1 Failed to load resource: net::ERR_FAILED

Comments

  • edited October 2019 Posts: 5
    I already tried to add the code below (without *) to the htaccess file, but unfortunately it doesn´t work. Sometimes the icons load, sometimes only squares.
    <*ifmodule mod_headers.c="">
    <*filesmatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$"="">
    Header set Access-Control-Allow-Origin "*"
    <*/filesmatch>
    <*/ifmodule*>
    Post edited by csawo on
  • AirAir
    Posts: 10,288
    Hey Chris :-)

    Unfortunately, I am not good with the "server-side" things, so I don't know how to help you with this. It looks like you have tried the thing that I would do.

    On your place, I would contact hosting provider - maybe they will have better understanding what could be worng.

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!