44d1a1cb15
This PR is part of a larger effort to migrate error messages to MDX and use App Router: https://github.com/vercel/front/pull/23459
21 lines
400 B
Text
21 lines
400 B
Text
---
|
|
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)
|