I’m trying to customize the styling of our new forum, and I want to use some custom fonts. We purchased a business hosting plan directly from Discourse.
I’ve uploaded the font files to the Staff > Assets… topic, and tried several versions of the source URL. Some return 404, and others show this error in the console:
Font from origin 'https://cdn.discourse.org' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://<forum-url>.com' is therefore not allowed access. The response had HTTP status code 404.
I’ve seen similar issues in other topics where the fix was to install the header on the CDN, but the CDN in this case is Discourse’s.
Is there a recommended way to use custom fonts on a Discourse-hosted installation?
The CORS setting in Security does not seem to work.