Knowledgebase
-
Missing icons from web fonts.
Missing icons from web fonts.
Custom web fonts via any cross-domain font request (e.g. clients.myexample.com) don't work in some browsers and require custom CORS configurations to display properly.
The following code to allow web fonts for Apache:
.htaccess file needs to be created or modified in WordPress location.
# Apache
<FilesMatch ".(eot|ttf|otf|woff)">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
The following code needs to be added to Nginx config:
# nginx config
if ($filename ~* ^.*?\.(eot)|(ttf)|(woff)$){
add_header Access-Control-Allow-Origin *;
}