Thi*_*ier 6 firebase firebase-security
我想知道 Firebase 是否可以实现以下功能:
Firebase 将在没有服务器端应用程序的前端 Web 应用程序中使用。
非常感谢您的帮助。
我认为您的所有要求都已满足。
查看文档:https : //www.firebase.com/docs/security/guide/user-security.html
稍加修改,您的安全规则可以如下:
{
"rules": {
"users": {
"$user_id": {
// grants write access to the owner of this user account
// whose uid must exactly match the key ($user_id)
".write": "$user_id === auth.uid",
".read": "$user_id === auth.uid"
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3150 次 |
| 最近记录: |