CORS Error with Font Files After Setting Up CloudFront CDN in Nginx with Hestia

I am facing an issue where font files are not loading properly due to a CORS error. I have recently set up CloudFront CDN with my WordPress site hosted on a server running Nginx with Hestia.

The issue is that when CloudFront caches the font files, they are not loading correctly and I receive a CORS missing Access-Control-Allow-Origin header error in the browser console. However, when I bypass the CDN and access the font files directly from the server, they load fine.

You should consult CDN or WordPress. Thank you for your support of Hestia!

1 Like