On this page
crossOrigin
Use the crossOrigin option to add a crossOrigin attribute in all <script> tags generated by the next/script component , and define how cross-origin requests should be handled.
module.exports = {
crossOrigin: 'anonymous',
}
Options
'anonymous': AddscrossOrigin="anonymous"attribute.'use-credentials': AddscrossOrigin="use-credentials".
© 2024 Vercel, Inc.
Licensed under the MIT License.
https://nextjs.org/docs/app/api-reference/next-config-js/crossOrigin