silverwolf-x/project / errors /doc-crossorigin-deprecated.mdx
silverwolf-x's picture
download
raw
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)

Xet Storage Details

Size:
400 Bytes
·
Xet hash:
07c3e8c1306b33f16cfb8cc02d408f723397eaabc00e3e282651cef9b418f628

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.