xem / xem/unicode13

CORS missing

Open
#3 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Loading the twemoji on-demand from a browser is blocked by missing CORS headers „Allow Origin“.

image

According to https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin <link /> would accept a crossorigin attribute. That could lead me to believe, that you could use it for loading the font and have a <style> / your CSS declare the @font-face:

<link rel="preload" href="//xem.github.io/unicode13/Twemoji.ttf" as="font" type="font/ttf" crossorigin="anonymous">

(For MIME Type, see https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face#font_mime_types )

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files or tests are named. Start by checking how https://xem.github.io/unicode13/Twemoji.ttf is served and compare the browser request with the linked MDN guidance; done means the font loads on demand from a browser without a CORS error.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.