Rules in Firebase database revert to original

I am developing a proof of concept application and therefore my security requirements are low. Therefore, I changed the rules for access to public access:

{
  "rules": {
    ".read": true,
    ".write": true
  }
}

This works as expected. The problem is that after a few minutes the rules will return to default values ​​(authorization is required), and I get the error message "Error: allowed in / in case: the client does not have permission to access the required data."

Why is this so?

Thank.

+4
source share
1 answer

You must edit the database.rules.json file in your IDE, then save it, then expand.

+9

Source: https://habr.com/ru/post/1665027/


All Articles