Skip to main content

crossOrigin

还没翻译译自英文(nextjs.org)本页 5 段都还没译

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.

next.config.js
module.exports = {
  crossOrigin: 'anonymous',
}

Options