2018-12-13 01:05:21 +01:00
|
|
|
# `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
|
|
|
|
// next.config.js
|
|
|
|
module.exports = {
|
2019-05-29 13:57:26 +02:00
|
|
|
crossOrigin: 'anonymous',
|
2018-12-13 01:05:21 +01:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Useful Links
|
|
|
|
|
2020-05-27 23:51:11 +02:00
|
|
|
- [The issue this was reported in: #5674](https://github.com/vercel/next.js/issues/5674)
|