How to solve trouble with loading fonts for subdomains and different domains if you use apache server.

I encountered this problem when install Intenco theme to one of the shops that works on Magento. Which had 5 sites with individual domains, and storeviews for US, GB, DE, FR and IT.

All styles and scripts subdomian (let it be gets from the primary domain(let it be but this theme use their own fonts, including iconic that plugs into * .css files and that’s what showed Chrome browser console when the page loads:

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

A little googling and I learned that this problem is solved by simply adding to the apache configuration lines, my solution in gist:

That’s all, the problem is solved)