[英]Should input validation be client-side or server-side for Enterprise applications?
I know maybe there's question about validation in client or server. 我知道也许存在有关客户端或服务器中验证的问题。 but this one for Enterprise applications such as Sales, Clients systems 但这是针对企业应用程序(例如销售,客户系统)的
Should the input validation like number, strings, dates be in client-side ? 输入验证(例如数字,字符串,日期)应该在客户端吗? or strongly be in both ? 还是两者兼而有之? or in server-side only. 或仅在服务器端。
Reason of asking is : 询问原因是:
In server-side validations example( Check for branch if exists, check if Store Exists. no problem happened at these scenarios because its server-side already. ) i don't speak about these points ( which related to Database things ) 在服务器端验证示例中(检查分支是否存在,检查存储是否存在。由于服务器端已经存在,因此在这些情况下没有问题。)我不谈论这些要点(与数据库相关)
Again. 再次。 sorry for asking question as this. 很抱歉这样问。 but please give opinions from people who works on Enterprise solutions will help me to take a choice. 但是请提供有关企业解决方案工作人员的意见,这将帮助我做出选择。
Always validate all user data on the server side. 始终在服务器端验证所有用户数据。 Like in ALWAYS and ALL . 就像总是和所有 。
Client side validation is only for UX. 客户端验证仅适用于UX。
Edit: added all 编辑:全部添加
PS: You can't trust the user PS:您不能信任用户
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.