This article has not been translated yet. Want to help us out? Click the Edit this doc on GitHub at the end of the page.

@umijs/plugin-crossorigin

为所有非三方脚本加上 crossorigin="anonymous" 属性,通常用于统计脚本错误。

启用方式

配置开启。

配置

  • Type: boolean
  • Default: false

比如:

export default {
crossorigin: true,
}