Blocked from loading by Cross-Origin Resource Sharing policy

Sometimes with a multi-store or a multisite you have missing icons (fonts) or similarities.

If you get this error:

Font from origin ‘http://www.domain.com’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://sub.domain.com’ is therefore not allowed access.

Add this to .htaccess file from www.domain.com and it will work again.

Header set Access-Control-Allow-Origin "*"

Author: Maarten Keizer

Hosting guru. WordPress addict. n00b programmer.

Leave a Reply

Your email address will not be published. Required fields are marked *