I have created two websites using one magento installation, like:
- abc.com (original)
- xyz.com (second domain)
Both are working fine except the fonts issue I got on sub domain (second website). Error is:
Font from origin 'abc.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 'xyz.com' is therefore not allowed access.
I have add the following code to
.htaccess of main site but not working.
<FilesMatch "\.(ttf|otf|eot|woff)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "xyz.com" </IfModule> </FilesMatch> <IfModule mod_headers.c> <FilesMatch "\.(svg|ttf|otf|eot|woff|woff2)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch> </IfModule>