gatsby-omni-font-loader icon indicating copy to clipboard operation
gatsby-omni-font-loader copied to clipboard

Crossorigin value automatically assigned and the value is invalid.

Open sakihayashi opened this issue 2 years ago • 1 comments

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!

sakihayashi avatar Jul 15 '23 22:07 sakihayashi