I have a multisite setup using subdomains and I’m getting the dreaded CORS policy 404 when trying to load custom fonts. I created a file under the appropriate domain inside nginx-includes and tried:
location ~* \.(eot|ttf|woff)$ {
add_header Access-Control-Allow-Origin '*';
}
also tried
location ~* \.(eot|ttf|woff)$ {
include h5bp/directive-only/cross-domain-insecure.conf;
access_log off;
add_header Cache-Control "max-age=2592000";
}
Each time after making changes, I ran:
ansible-playbook server.yml -e env=staging --tags nginx-includes
I’m still having the problem. I can SSH into the server and everything looks like it should, but I can’t get rid of the issue.