Answer the question
In order to leave comments, you need to log in
How safe is it to make an admin panel on vuejs?
Good day!
I have a question, I have a back on Strapi and a front on Nuxtjs, at the moment I am publishing articles using the Strapi admin, but now I want to implement a user profile with role assignments (user, editor, moderator, etc.), but how safe is it? That is, I do authorization by jwt token, then the application receives a role and simply checks whether the user's role converges and, depending on this, gives opportunities, but since it's all on the client, you can just slip the desired role and get rights,
or I won't right?
Or maybe it is implemented in some other way?
Answer the question
In order to leave comments, you need to log in
The token is only to prevent navigation through the route if not authorized and there is no role.
But on the server, you have to check if it is a bull or jupiter and let jupiter do what a bull is not allowed to do :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question