Access to font at [same domain as origin minus www.] has been blocked by CORS policy


My website is throwing the following error:

“Access to font at from origin has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”.

As you can see, they actually are the same domain minus the “www.”. I contacted my hosting provider but they said it was Cloudfare. They provided the following message with details about my settings:

These are my DNS entries:

I apologize for the trouble and would really appreciate it if anyone could help me out.

Thanks a lot!

CORS policy is set by the web server and, given the cache status says DYNAMIC it’s looking like Cloudflare isn’t actively caching it.

This is something that the host/web devs need to fix.

They could just make sure to use the same domain…

Thank you very much for replying matteo! I think my hosting provider is just lazy. I managed to use a relative URL for the fonts, however, which fixed the problem. Thank you very much once more and have a great week ahead!


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.