개발/Firebase
firebase 보안세팅
dev_caleb
2022. 6. 24. 12:10
728x90
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /Places/{docId} {
allow read, write;
}
match /{document=**} {
allow read;
allow write: if request.auth.uid != null;
}
}
}
어떤사람이 해낸 예시임, 나는 moim collection에 대해서만,
https://stackoverflow.com/questions/69662434/firestore-allow-read-if-collection-name-matches
Firestore allow read if collection name matches
I'm trying to implement what I thought was a basic security rule in Cloud Firestore, namely to allow read access to a specific collection. service cloud.firestore { match /databases/{collectionNa...
stackoverflow.com
728x90