Skip to content

Ability to disable setting crossorigin for fonts #29

@oleg-slapdash

Description

@oleg-slapdash

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions