The admin panel's icon font refuses to load, throwing a 404 along with the full body of the font file. The result looks like this:
I don't know nginx well, but we recently added a change to the config to categorically lock down cross-domain font usage where suddenvalleydevelopment.com
is our primary domain and balboatowers.com
is another one authorized to use fonts. Relevant lines:
map $http_origin $cors_permitted_domain {
hostnames;
default suddenvalleydevelopment.com;
.suddenvalleydevelopment.com $http_origin;
.balboatowers.com $http_origin;
}
location ~* \.(otf|ttf|eot|woff)$ {
add_header "Access-Control-Allow-Origin" "$cors_permitted_domain";
add_header 'Vary' 'Origin';
}
I'm pretty sure this created the problem you see above, but I don't understand how and therefore how to fix it. We know that Craft stores its own font files at craft/app/resources/fonts, and not in public/admin/resources/fonts like you'd expect from the request.
How does Craft get its icon font (Craft.woff, etc.) to the browser, and why would the CORS provision interfere with that?