I have Permission denied in Firebase Chat. Tried this but not working. I have tried in Realtime database
{
"rules": {
".read": "true",
".write": "true",
}
}
Loot at screenshot for detailed error
I have Permission denied in Firebase Chat. Tried this but not working. I have tried in Realtime database
{
"rules": {
".read": "true",
".write": "true",
}
}
Loot at screenshot for detailed error
2
Answers
I have fixed this with following code
Boolean values don’t require quotation marks.
In your own answer you used an expression that is evaluated, which does need the quotation marks. Writing
"now < 9963441200000"
is exactly the same astrue
, sincenow
is a Unix Timestap which caps at 2147483647000 and will always be less than that value.Note that neither is a secure set of rules.
The Realtime Database Security Rules section of the documentation goes into more detail.