Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

ability to remove crossorigin #115

Open
Coding-Kiwi opened this issue Apr 23, 2020 · 0 comments
Open

ability to remove crossorigin #115

Coding-Kiwi opened this issue Apr 23, 2020 · 0 comments

Comments

@Coding-Kiwi
Copy link

No idea what I'm doing wrong but if I want to preload local fonts, it adds "crossorigin='anonymous'" to the link tag:

<link as="font" crossorigin="anonymous" href="static/fonts/0e96b9ec74a14d59625ae92ff6a5e50e.woff2" rel="preload">

that causes a A preload for '<URL>' is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute. warning in the console and the font is not preloaded.

When I add the link manually and remove the crossorigin attribute, the font gets preloaded once correctly without warnings.

Sadly there is no option to remove the crossorigin attribute.

Also the mime type is missing https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content#Including_a_MIME_type

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

No branches or pull requests

1 participant