【发布时间】:2019-09-07 07:04:36
【问题描述】:
我需要在 Firebase 存储中设置一个只有读取权限的公共文件夹,我的安全规则是
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write:if request.auth.uid != null;
}
match /{platos=**} {
allow read;
}
}
}
该文件夹称为 platos,我不确定这些规则是否受到保护,其他文件夹必须仅对登录用户具有保护
【问题讨论】:
-
取决于你叫什么
secured。您允许登录到您的 firebase 项目的任何人读取和写入所有文件路径。
标签: firebase firebase-storage firebase-security