{"record":{"id":"66ac18c20eecd50f","repo":"vercel/next.js","slug":"warning-head-attribute-crossorigin-is-depreca","errorCode":null,"errorMessage":"Warning: `Head` attribute `crossOrigin` is deprecated. https://nextjs.org/docs/messages/doc-crossorigin-deprecated","messagePattern":"Warning: `Head` attribute `crossOrigin` is deprecated\\. https://nextjs\\.org/docs/messages/doc-crossorigin-deprecated","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/pages/_document.tsx","lineNumber":684,"sourceCode":"        if (!isReactHelmet) {\n          if (child?.type === 'title') {\n            console.warn(\n              \"Warning: <title> should not be used in _document.js's <Head>. https://nextjs.org/docs/messages/no-document-title\"\n            )\n          } else if (\n            child?.type === 'meta' &&\n            child?.props?.name === 'viewport'\n          ) {\n            console.warn(\n              \"Warning: viewport meta tags should not be used in _document.js's <Head>. https://nextjs.org/docs/messages/no-document-viewport-meta\"\n            )\n          }\n        }\n        return child\n        // @types/react bug. Returned value from .map will not be `null` if you pass in `[null]`\n      })!\n      if (this.props.crossOrigin)\n        console.warn(\n          'Warning: `Head` attribute `crossOrigin` is deprecated. https://nextjs.org/docs/messages/doc-crossorigin-deprecated'\n        )\n    }\n\n    const files: DocumentFiles = getDocumentFiles(\n      this.context.buildManifest,\n      this.context.__NEXT_DATA__.page\n    )\n\n    const nextFontLinkTags = getNextFontLinkTags(\n      nextFontManifest,\n      dangerousAsPath,\n      assetPrefix,\n      cssAssetQueryString\n    )\n\n    const tracingMetadata = getTracedMetadata(\n      getTracer().getTracePropagationData(),","sourceCodeStart":666,"sourceCodeEnd":702,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/pages/_document.tsx#L666-L702","documentation":"Development-only warning from the Head component's render in pages/_document.tsx: it checks this.props.crossOrigin and warns when set. The crossOrigin prop on Head was deprecated; cross-origin script loading is now configured via the crossOrigin next.config.js option instead of a per-component prop.","triggerScenarios":"Thrown at packages/next/src/pages/_document.tsx:684 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the `crossOrigin` attribute from Document's <Head>; it is deprecated."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0eb377541648e63402a47b38fee00a8d0ce8f8f1","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}