permissioncodes是一个字符串数组,['admin/pwd/edit', 'admin/role/delete', 'user/info/edit', ...]。用于前端页面做权限判断。
将权限代码permissioncodes存储在this.$store.getters.permissioncodes 中,是否有安全隐患?
1、是否可以通过F12查看全部信息?
2、存在cookie中吗? cookie如果不设置httponly的话,是可以随便修改的。
所有纯前端做的安全都是纸老虎。
都需要后端来配合的。
Most helpful comment
所有纯前端做的安全都是纸老虎。
都需要后端来配合的。