firebase ,只读取 public 并不允许写入?
firebase , just read public and disallowed write?
我想只允许读,不允许写。
我试试这个:
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read;
allow write: if false;
}
}
}
是否足以满足我的目的?
在你提出问题后,我正在研究它并且我有一些 Hack。
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read;
allow write: if false == true;
}
}
}
希望你喜欢。它对我很成功。
我想只允许读,不允许写。
我试试这个:
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read;
allow write: if false;
}
}
}
是否足以满足我的目的?
在你提出问题后,我正在研究它并且我有一些 Hack。
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read;
allow write: if false == true;
}
}
}
希望你喜欢。它对我很成功。