启用 App Check 强制执行
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
在了解 App Check 对用户有何影响并为后续操作做好准备之后,您便可以启用 App Check 强制执行。
以下步骤介绍了如何为 Data Connect、Firebase AI Logic、Realtime Database、Cloud Firestore、Cloud Storage、Authentication、iOS 版 Google Identity、Maps JavaScript API 和 Places API(新版)启用强制执行。为产品启用强制执行后,发送到该产品的所有未经验证的请求都将被拒绝。
打开 Firebase 控制台的 App Check 部分。
展开要为其启用强制执行的产品的指标视图。
点击强制执行并确认您的选择。
请注意,启用强制执行后,最多可能需要 15 分钟才能生效。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-16。
[null,null,["最后更新时间 (UTC):2025-08-16。"],[],[],null,["When you [understand how App Check will affect your users](/docs/app-check/monitor-metrics)\nand you're ready to proceed, you can enable App Check enforcement.\n\nThe following steps describe how to enable enforcement for\nFirebase AI Logic, Data Connect, Realtime Database, Cloud Firestore, Cloud Storage, Authentication, Google Identity for iOS, Maps JavaScript API, and Places API (New). Once you enable enforcement for a product,\nall unverified requests to that product will be rejected.\n\n1. Open the [**App Check**](//console.firebase.google.com/project/_/appcheck)\n section of the Firebase console.\n\n2. Expand the metrics view of the product for which you want to enable\n enforcement.\n\n3. Click **Enforce** and confirm your choice.\n\nNote that it can take up to 15 minutes after you enable enforcement for it to\ntake effect."]]