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

Crossorigin value automatically assigned and the value is invalid. #36

Open
sakihayashi opened this issue Jul 15, 2023 · 0 comments
Open

Comments

@sakihayashi
Copy link

sakihayashi commented Jul 15, 2023

When I analyzed my Gatsby website using omni font loader v2, I got an error crossorigin has an invalid value 'true' by HTML validator. It has to be 'anonymous' or empty.

There is not setting options for me to do with omni font loader for crossorigin but it renders 'true'.

<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin="true"/>
Can anyone tell me how to fix it and/or add an optional setting for crossorigin, please?

My configuration

    {
      resolve: `gatsby-omni-font-loader`,
      options: {
        enableListener: true,
        preconnect: [
          `https://fonts.googleapis.com`,
          `https://fonts.gstatic.com`,
        ],
        web: [
          {
            name: `Jost`,
            file: `https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap`,
          },
        ],
      },
    },

Thank you!

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