Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable font examples can't download font (CORS error) #5606

Closed
wbamberg opened this issue Jun 2, 2021 · 3 comments · Fixed by #7970
Closed

Variable font examples can't download font (CORS error) #5606

wbamberg opened this issue Jun 2, 2021 · 3 comments · Fixed by #7970
Assignees
Labels
Content:CSS Cascading Style Sheets docs

Comments

@wbamberg
Copy link
Collaborator

wbamberg commented Jun 2, 2021

Loading https://developer.mozilla.org/en-US/docs/Web/CSS/font-style, https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight, or https://developer.mozilla.org/en-US/docs/Web/CSS/font-stretch, I see console errors like:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://mdn.mozillademos.org/files/16044/AmstelvarAlpha-VF.ttf. (Reason: CORS header “Access-Control-Allow-Origin” missing).

In the font-style page this completely breaks the example at https://developer.mozilla.org/en-US/docs/Web/CSS/font-style#variable_fonts .

In font-weight this partially breaks the example at https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#variable_fonts (because the fallback font is a little variable, I guess).

In the font-stretch page the live sample is broken: https://developer.mozilla.org/en-US/docs/Web/CSS/font-stretch#setting_font_stretch_percentages.

@wbamberg wbamberg added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jun 2, 2021
@rachelandrew
Copy link
Collaborator

This relates to: #4209

It keeps coming up, I'll prioritize moving them. It doesn't take a huge amount of time, it's just not very exciting :D

@rachelandrew rachelandrew self-assigned this Jun 4, 2021
@rachelandrew rachelandrew added Content:CSS Cascading Style Sheets docs and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jun 4, 2021
@peterbe
Copy link
Contributor

peterbe commented Jun 7, 2021

This is actually a bit tricky. Yari only supports images as file attachments.
I have a draft of a solution but not enough time to perfect the PR. If anybody on the content side is willing to help out testing it we can probably solve this.

@wbamberg
Copy link
Collaborator Author

wbamberg commented Jun 7, 2021

If anybody on the content side is willing to help out testing it we can probably solve this.

I'm totally happy to help out. Thanks @peterbe !

peterbe added a commit to peterbe/content that referenced this issue Jun 7, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:CSS Cascading Style Sheets docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants