This option has been moved to next.config.js.
next.config.js
Add the config option:
// next.config.js module.exports = { crossOrigin: 'anonymous', }