doc-crossorigin-deprecated.mdx


title: 'Head or NextScript attribute crossOrigin is deprecated'

Why This Error Occurred

This option has been moved to next.config.js.

Possible Ways to Fix It

Add the config option:

module.exports = {
  crossOrigin: 'anonymous',
}

Rendered from the public repository vercel/next.js on GitHub; content belongs to its authors. Cached for up to an hour.

errors/doc-crossorigin-deprecated.mdx · vercel/next.js | Docs MD