sooroos Posted July 21, 2014 Posted July 21, 2014 (edited) Hi guys, i have noticed that the icons in my shop are not displayed correctly anymore but only in Firefox. Does anyone know any solution? Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at themes/theme/font/fontawesome-webfont.woff?v=3.2.1. This can be fixed by moving the resource to the same domain or enabling CORS. Edited July 22, 2014 by sooroos (see edit history) Share this post Link to post Share on other sites More sharing options...
nhelliwell Posted July 21, 2014 Posted July 21, 2014 I had this, added this to .htaccess on server, <FilesMatch "\.(ttf|otf|eot|woff)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule></FilesMatch> 1 Share this post Link to post Share on other sites More sharing options...
sooroos Posted July 22, 2014 Posted July 22, 2014 (edited) i have only accessed the folder themes/current_theme/font via FTP and seems that Firefox displays now the icons correctly. I didnt change anything but i hope this is not only temporary! I have in .htaccess the following lines only: <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> Edited July 22, 2014 by sooroos (see edit history) Share this post Link to post Share on other sites More sharing options...
glouk7 Posted October 7, 2014 Posted October 7, 2014 Any update on that? I have the same issue...and it didn't solved by the solution above Share this post Link to post Share on other sites More sharing options...
dsilvestre Posted December 1, 2014 Posted December 1, 2014 I have the same problem and I couldn't resolve it with <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> or <FilesMatch "\.(ttf|otf|eot|woff)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule></FilesMatch> Share this post Link to post Share on other sites More sharing options...
thomas.ribiere Posted February 10, 2015 Posted February 10, 2015 (edited) you may not have the mod_headers required for this command. For adding it, you can try (ssh) : sudo a2enmod headers and after complete : sudo service apache2 restart it should be ok Edited February 10, 2015 by thomas.ribiere (see edit history) 1 1 Share this post Link to post Share on other sites More sharing options...
Recommended Posts