-
카테고리
-
세부 분야
모바일 앱 개발
-
해결 여부
미해결
permission denied / unhandled Exception 오류
20.03.27 10:51 작성 조회수 641
3
flutter firestore Status{code=PERMISSION_DENIED, description=Missing or insufficient permissions., cause=null}
Unhandled Exception: PlatformException(Error performing setData, PERMISSION_DENIED: Missing or insufficient permissions., null
이런 에러 뜨시는 분은 database > 규칙에서
allow read, write: if false;
에서
allow read, write: if true;
로 수정하시면 정상적으로 작동합니다
Flutter 입문 - 안드로이드, iOS 개발을 한 번에 (with Firebase)
Firebase Storage와 Firestore를 사용하여 게시물 업로드하기 (수업노트 확인)
강의실 바로가기
답변을 작성해보세요.
1
오준석
지식공유자2020.03.27
Firestore 처음 생성시 테스트 모드로 했다면 1달이 지난 시점부터 윗분 말씀처럼 권한이 없어서 오류가 납니다.
윗 내용처럼 수정하면 모든 권한 허용이고요.
다음처럼 하면 로그인 한 유저만 권한 허용이 됩니다.
참고하세요.
allow read, write: if request.auth.uid != null;
답변 1