I tried reading the first couple of answers but none seem to have the same rule with the one I currently have my hands on. When I try to call the getDocs() function (using react) I seem to be getting the error FirebaseError: Missing or insufficient permissions. what can I do to not get this error? Below is the rule
Tag: firebase-security
Firebase: authenticated and guest clients connecting to same Firestore Database
My use case is, I have a web app in which I listen to Firestore collections. One of the collections are for public users where anonymous auth is enough. And the second collection is for logged in users, so I implemented custom token auth following this. https://firebase.google.com/docs/auth/web/custom-auth. Once a user logs in, we start a Web Worker to initialise app
index.esm2017.js:370 Uncaught (in promise) FirebaseError: Missing or insufficient permissions in ReactJs
Complete error Get https://firestore.googleapis.com/google.firestore.v1.Firestore/Write/channel?database=projects%2Fnetflixclone-001%2Fdatabases%2F(default)&gsessionid=Il1qOZrt3xwI9HsitxL5j4_GdibS-ga9&VER=8&RID=rpc&SID=MgLGFVuM420X7FPF_SYqrg&CI=0&AID=0&TYPE=xmlhttp&zx=fhlml28c0sd1&t=1 net::ERR_FAILED 200 Rules(cloud firestone) seedData Code(data.js) firebase.prod.js class All other pages working fine Answer Your security rules just do not allow anyone to read or write to your database. If your set your rule to true as shown below, it should allow your to write: Now the problem is anyone on the internet can read or
Firestore denying permission to create/push collection
I am new to firebase / firestore and am trying to create a new collection upon login and authenticating a user, on client side and using React. I read a few other articles here and I set the db rules to true for both read and write, but yet, I keep getting an error on the Firestore db, while it
How to set Firebase rules for anonymous users to only read and write their own data
I would like anonymous users to be able to only read and write their own data. I have the below as my security rules, but am getting a cannot read error in the simulator and the app. I’m not sure that I’m going about it the right way. My main objective is to nest new assessments of the same user
Firebase Realtime Database – Determine if user has access to path
I have updated my Firebase Realtime Database access rules, and have noticed some clients now tries to access paths they do not have access to. This is ok – but my problem is that my code stops after being unable to read a restricted node. I see below error in my console, and then loading of subsequent data stops: I
Setting limits on file uploads via Firebase auth and storage without server in the middle?
I’m learning about Firebase auth and storage in a web app. My idea asks users to login via Firebase and then upload an image. I can see that this is possible from Firebase auth and storage. However, I would like to put limits on the file count and file-size they can upload. Is it possible to control uploads within the
Firebase Permission Denied
I’m relatively new to coding and am having trouble. I have this code to send data to firebase However, I keep getting the error: FIREBASE WARNING: set at /users/(GoogleID) failed: permission_denied 2016-05-23 22:52:42.707 firebase.js:227 Uncaught (in promise) Error: PERMISSION_DENIED: Permission denied(…) When I try to look this up it talks about rules for Firebase, which seems to be in a