cynkra / cynkrablog

Source of the cynkra blog
https://cynkra.com/blog
0 stars 1 forks source link

Font issue #49

Closed christophsax closed 9 months ago

christophsax commented 9 months ago

image

maelle commented 9 months ago

Ouch! This is what I see on Firefox:

image

maelle commented 9 months ago

But on Chrome I can see the issue too.

maelle commented 9 months ago

Must be a CORS thing, exploring now.

maelle commented 9 months ago

Related #15

maelle commented 9 months ago

Could it be a CORS isse this time? Or did the rules change in cynkraweb

Font rules

https://github.com/cynkra/cynkrablog/blob/db8cd197afb7a10c47875b2def397b74a28efc7b/custom.scss#L41-L56

christophsax commented 9 months ago

Today is the first time I see this. On all browsers. I am not aware we changed stuff in cynkraweb but then I may overlook something.

maelle commented 9 months ago

I don't see changes in the relevant cynkraweb scss file. I don't see any error in the web developer console.

DivadNojnarg commented 9 months ago

I managed to see a CORS error:

blog.cynkra.com/:1 
Access to font at 'https://cynkra.com/assets/css/fonts/1449009/b3ca2df2-7bee-4fc0-84cb-b029b99c3b61.woff2' from origin 'https://blog.cynkra.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://www.cynkra.com' that is not equal to the supplied origin.
maelle commented 9 months ago

@pat-s is this an easy CORS switch? sorry to bother you once again about fonts :sweat_smile:

pat-s commented 9 months ago

CORS is fixed, but it seems the font still cannot be loaded from the source.

maelle commented 9 months ago

Thank you! Do you have any idea what might be wrong? I'll explore more next Monday...

maelle commented 9 months ago

I have the issue for the preview at GitHub pages, but https://blog.cynkra.com/ looks ok to me now?! or maybe only the headers. I'm really confused now.

maelle commented 9 months ago

I wonder whether this could be linked to the font files that had the "wrong" names at one point @christophsax @pat-s?

pat-s commented 9 months ago

https://blog.cynkra.com/ is still not showing fonts. You can check this in a private window.

There are no devtools errors in the browser about something being blocked or not accessible, so the issue is likely in the source/css somewhere.

maelle commented 9 months ago

@DivadNojnarg found the typo I had made :woman_facepalming: