Reputation: 13
hi everyone :) I'm currently a front-end beginner and I'm wondering if I could manage users authorities by JavaScript code alone? I want to create a simple Student Management System with Log in Features, with admin who have the full authority to manage the students data (add, delete, update)& other users can only log in and read. it that possible in the Clint-side? or it's server-side only?
Upvotes: 1
Views: 627
Reputation: 7455
If your access control implementation is done only on client-side it means that it will be relatively easy for an attacker (even for beginner one) to get access to the functionality you want to hide:
In conclusion, such approach is reasonable only for demo projects or proof of concept, but not for the applications available for public.
Upvotes: 1