Download next.js/errors/doc-crossorigin-deprecated.mdx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 400 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/errors/doc-crossorigin-deprecated.mdx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/errors/doc-crossorigin-deprecated.mdx
-
curl -L -o doc-crossorigin-deprecated.mdx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/errors/doc-crossorigin-deprecated.mdx
400 Bytes
| 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: | |
| ```js filename="next.config.js" | |
| module.exports = { | |
| crossOrigin: 'anonymous', | |
| } | |
| ``` | |
| ## Useful Links | |
| - [The issue this was reported in: #5674](https://github.com/vercel/next.js/issues/5674) | |