2

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);
    }
  }
}
Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Yαиɢ
  • 39
  • 1
  • 4
  • See the question I linked, and *many* more from https://www.google.com/search?q=site:stackoverflow.com+Your+Cloud+Firestore+database+will+start+denying+client+requests+unless+you+update+your+security+rules – Frank van Puffelen Aug 08 '21 at 19:34

1 Answers1

3
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

Daisho Arch
  • 520
  • 2
  • 16