Firebase security with angularfire
-
21-12-2019 - |
Question
I'm new to firebase and angularfire. AngularJS is client side code. Its public to anyone. What prevents a hacker from taking the following firebase reference, and using it in another app?
var peopleRef = new Firebase("https://<my-firebase>.firebaseio.com/people");
$scope.people = $firebase(peopleRef);
Solution
I think that Firebase has security rules surrounding who can do what with your data. So, I think you can specify users in your firebase that can have read/write permissions. I have never used them, but you can read about them here: https://www.firebase.com/docs/security/security-rules.html
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow