Support » Plugin: Breeze - WordPress Cache Plugin » CORS Problem CloudFront

  • Shekhar


    I logged in and view the front website, I get CORS issue on Chrome. It happens on Google fonts that I have hosted in local and served via CloudFront CDN. It affects the visual view of the website only when logged in.
    However, it’s alright when viewed without logged in. How to fix this issue?

    Failed to load resource: net::ERR_FAILED
    (index):1 Access to font at ‘’ from origin ‘’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

    This error message appears for every fonts served via CDN.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author adeelkhan



    To resolve the issue you may pass “Access-Control-Allow-Origin: *” in the header of your file.

    It’s fine to do that but seems like I found the problem.
    I tried inspect elements on Chrome > Network > Font.

    I can see that Breeze is not using CDN url for web fonts. They are loading directly from the server url.

    You know that Fonts could be heavy while loading. Its best when they are served via CDN url.

    So, is it possible for you to make breeze load local web fonts from CDN url?

    • This reply was modified 2 months, 4 weeks ago by Shekhar.

    Yes thats the bug in plugin. It happens even when I exclude fonts extensions on CDN.

    What happens is when I’m logged in it uses cdn url for fonts whereas when I am not logged in it uses server url. So, there is a bug!

    Are you going to fix that? (kindly)

    Plugin Author adeelkhan


    We have added it to the list of improvements.

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