typekit / webfontloader

Web Font Loader gives you added control when using linked fonts via @font-face.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Opt-in to CORS for Progressive Web App caching

mtwalsh opened this issue · comments

Hi,

I'm using Web Font Loader in a Progressive Web App, but I'm not able to cache the font request it initiates because it returns an opaque response. Would it be possible to add a config option so that crossorigin="anonymous" can be added to the link element inserted into the head?

I think this might be the function in question:

https://github.com/typekit/webfontloader/blob/master/src/core/domhelper.js#L273

image