Modify Firebase Rules to prevent conflict with web app

This commit is contained in:
Ray 2023-11-14 14:23:46 +00:00 committed by GitHub
parent 7a672b58a7
commit 2d59b73f47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -12,8 +12,11 @@ service cloud.firestore {
// 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, 12, 7);
//match /{document=**} {
//allow read, write: if request.time < timestamp.date(2023, 12, 7);
// }
match /movies/{document=**} {
allow read: if true;
}
}
}

View File

@ -6,7 +6,7 @@ rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if false;
allow read, write: if true;
}
}
}
}