프로그래밍/웹 개발
[Firebase] Uncaught FirebaseError: Missing or insufficient permissions
제이콥J
2022. 1. 17. 19:04
문제 상황 : firebase의 firestore에 데이터가 입력되지 않음
에러메세지 : Uncaught FirebaseError: Missing or insufficient permissions
원인 : firestore 데이터베이스에 접근 권한 허용이 안 됨
해결방안 : Cloud Firestore의 '규칙'에서 false를 true로 변경
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true; // false를 true로 변경
}
}
}
반응형