Firebase rules

65 views
Skip to first unread message

Next Artificial View

unread,
May 16, 2024, 10:48:10 AMMay 16
to Firebase Google Group
Greetings,
I hope you are doing great.
I got a problem with firebase rules; Even though I set the following as rules for the firebase, I am still facing problems with: Your Realtime Database **** has insecure rules We've detected the following issue(s) with your security rules:
any user can read your entire database
any user can write to your entire database

*The rules that I have set:
{
  "rules": {
    "some_path": {
      "$uid": {
        // Allow only authenticated content owners access to their data
        ".read": "auth !== null && auth.uid === $uid",
        ".write": "auth !== null && auth.uid === $uid"
      }
    }
  }
}
Reply all
Reply to author
Forward
0 new messages