Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Your Cloud Firestore database will start denying client requests unless you update your security rules [duplicate]

Your Cloud Firestore database will start denying client requests unless you update your security rules؟

what is mean this?

this is my rules in firebase

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if
          request.time < timestamp.date(2021, 9, 3);
    }
  }
}
like image 298
Yαиɢ Avatar asked Sep 11 '25 01:09

Yαиɢ


1 Answers

allow read, write: if
    request.time < timestamp.date(2021, 9, 3);

This code means that you're allowing all read and write requests to the database until September 3rd 2021.

If you instead want to allow reads and writes no matter the date, use this:

allow read, write: if true;

But, rules exist for a reason, so you may want to read up on them on the official docs

like image 96
Daisho Arch Avatar answered Sep 13 '25 11:09

Daisho Arch