nextjs / latest / pages / api-reference / next-config-js / crossorigin.html

crossOrigin

Use the crossOrigin option to add a crossOrigin attribute in all <script> tags generated by the next/script and next/headcomponents, and define how cross-origin requests should be handled.

module.exports = {
  crossOrigin: 'anonymous',
}

Options

© 2024 Vercel, Inc.
Licensed under the MIT License.
https://nextjs.org/docs/pages/api-reference/next-config-js/crossOrigin