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

Ability to disable setting crossorigin for fonts #29

Open
oleg-slapdash opened this issue Oct 8, 2021 · 0 comments
Open

Ability to disable setting crossorigin for fonts #29

oleg-slapdash opened this issue Oct 8, 2021 · 0 comments

Comments

@oleg-slapdash
Copy link

We use webpack to build our application for electron. Our html, css and woff2 are delivered over file:// protocol. Setting crossorigin attribute on fonts results in loading the font twice.

example requests:

curl 'file:///<redacted>/Inter-Bold.3J6.woff2' \
  -H 'Origin: file://' \
  -H 'Referer: ' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Slapdash/2.6.5 Chrome/87.0.4280.141 Electron/11.3.0 Safari/537.36' \
  --compressed

curl 'file:///<redacted>/Inter-Bold.3J6.woff2' \
  -H 'Referer: ' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Slapdash/2.6.5 Chrome/87.0.4280.141 Electron/11.3.0 Safari/537.36' \
  --compressed

Please provide a way to disable it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant