Skip to content

Preload add crossorigin attribute #1835

Open
@sotasan

Description

@sotasan

I have an image that I want to preload, that comes from an external source.

That's why I have added the crossorigin="anonymous" attribute.

But now the generated HTML is only the preload without the extra attribute:

<link rel="preload" as="image" href="XXX">

Because of that, Chrome throws following warning in the console:

A preload for 'XXX' is found, but is not used because the request credentials mode does not match.
Consider taking a look at crossorigin attribute.

So the generated HTML should essentially look like this:

<link rel="preload" as="image" href="XXX" crossorigin="anonymous">

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