How do you prevent client side console hacks on firebase web apps?

后端 未结 2 1829
无人共我
无人共我 2020-12-30 14:35

It dawned on me that with so much client side logic, malicious users can spoof, override or game firebase apps by using the console in any browser.

For instance, I c

2条回答
  •  青春惊慌失措
    2020-12-30 15:05

    Firebase rules is really a new web building approach. You can build any kind of web app using thoses rules. I'll not put rules code here but I'll explain what I mean. For example. You want to build a learning app. using rules you can create two or three roles for users. Then for each content you can put a field(array for example) and check for each request if the requester user after authentication have the role to access some content. I think all CMS are working by this way right now.

    Hope this will give more ideas on Firebase platform.

提交回复
热议问题