My website uses CDN and while everything is fine on Chrome in Firefox I'm getting the following error:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://static.website.com/wp-content/themes/themename/fonts/font-name.woff. This can be fixed by moving the resource to the same domain or enabling CORS.

When I've checked my website .htaccess file I've noticed that header is open to * when requesting this kind of files (fonts)

Here is what I have set:

<FilesMatch "\.(svg|ttf|otf|eot|woff)$">
    <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"

Any ideas what else needs to be done to allowed fonts to serve from CDN?

1 Answer 1


Found a solution eventually.

We had to set CORS on our bucket (we use Amazon S3) since the files served to the CDN from it and not directly from the website.

Here is some info on how to do it

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .