Skip to main content
WordPressCode Snippets

Bad URI or cross-site access not allowed

By December 13, 2013One Comment

I was working with the awesome theme Salient today and noticed that in FireFox and Internet Explorer that some of the icon short codes had stopped working. Strange enough they are all working in Chrome. I noticed that firebug was reporting the error: bad URI or cross-site access not allowed. Salient uses Font Awesome to generate icons and fonts.

After a quick Google search I was able to find a solution that solved my issue. Hope this can help someone else.

Add the following to your .htaccess

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

Happy WordPress Blogging!

One Comment

Leave a Reply