Skip to main content

crossOrigin

使用 crossOrigin 选项在 next/script 组件生成的所有 <script> 标签中添加 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