From 861be10d2e7cd93fd1047a1dc51df79bbab62e43 Mon Sep 17 00:00:00 2001 From: "Rayyan (Rayy)" Date: Tue, 10 Oct 2023 20:53:40 +1100 Subject: [PATCH] Create FirebaseRules.txt --- FirebaseRules.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 FirebaseRules.txt diff --git a/FirebaseRules.txt b/FirebaseRules.txt new file mode 100644 index 0000000..eaec403 --- /dev/null +++ b/FirebaseRules.txt @@ -0,0 +1,22 @@ +rules_version = '2'; + +service cloud.firestore { + match /databases/{database}/documents { + + // This rule allows anyone with your Firestore database reference to view, edit, + // and delete all data in your Firestore database. It is useful for getting + // started, but it is configured to expire after 30 days because it + // leaves your app open to attackers. At that time, all client + // requests to your Firestore database will be denied. + // + // Make sure to write security rules for your app before that time, or else + // all client requests to your Firestore database will be denied until you Update + // your rules + //match /{document=**} { + //allow read, write: if request.time < timestamp.date(2023, 9, 28); + // } + match /books/{document=**} { + allow read: if true; + } + } +}