Steps to reproduce
Open an Obsidian Publish site such as https://help.obsidian.md/ with a Chrome-based browser (tested with Brave and Vivaldi) and open the developer console, the following error is reported:
Access to font at 'https://john.kitchen/fonts/c504db5c06caaf7cdfba.woff2' (redirected from 'https://publish.obsidian.md/public/fonts/c504db5c06caaf7cdfba.woff2') from origin 'https://help.obsidian.md' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
john.kitchen/fonts/c504db5c06caaf7cdfba.woff2:1 Failed to load resource:
net::ERR_FAILED
I looked in the Network view at Initiators and it seems to come from
https://publish.obsidian.md/app.css?524a503cbaf2462f83f1
The relevant lines from the CSS are:
@font-face {
font-family: InterVariable;
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url(/public/fonts/c504db5c06caaf7cdfba.woff2) format('woff2');
}
Did you follow the troubleshooting guide? [Y/N]
Yes
Expected result
No failure loading the font.
Actual result
Font loading failure
Environment
Irrelevant, since it applies to Publish websites.