我可以通过
读写安全规则吗?var firebaseRef = new Firebase('https://YOUR_FIREBASE.firebaseio.com/.settings/rules');
firebaseRef.set(rulesJson);
答案 0 :(得分:4)
不,但您可以使用REST API来读取或编写安全规则:https://www.firebase.com/docs/rest-api.html
curl https://SampleChat.firebaseio-demo.com/.settings/rules.json?auth=FIREBASE_SECRET
curl -X PUT -d '{ "rules": { ".read": true } }' https://SampleChat.firebaseio-demo.com/.settings/rules.json?auth=FIREBASE_SECRET