Cross Domain Issue
-
Came across this on a site I’m working on. Apparently FireFox doesn’t like using fonts when there’s a cross domain.
i.e. The blog being located at blog.domain.com but on the actual site it’s domain.com/blog
So when looking at the fonts on the simple social icons, they come up as little boxes.
I found a fix though. Add an .htaccess file to the fonts folder with:
<FilesMatch “\.(ttf|otf|eot|woff)$”>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin “*”
</IfModule>
</FilesMatch>Not sure if it’s feasable to add an .htaccess file to a plugin. In my case it’s necessary though since I work in a large corporate and the WP .htaccess is customized, so I can’t touch it =)
Hope this helps.
https://www.ads-software.com/extend/plugins/simple-social-icons/
- The topic ‘Cross Domain Issue’ is closed to new replies.