文档/扩展/Webview CSP

Webview 内容安全策略

Webview 中的内容安全策略 (CSP) 配置指南。

最佳实践

  • 始终设置严格的 CSP
  • 使用 nonce 允许内联脚本
  • 避免使用 unsafe-inline