client side validation doubts

前端 未结 5 1488
情话喂你
情话喂你 2020-12-21 05:53

I have read from one of the blog, for security reasons, its suggested to do the input data validation at the server side not the client side.

From the above stateme

5条回答
  •  一生所求
    2020-12-21 06:29

    Client side validation is only there to save the client time, so when they input and invalid value it says "Bad value" without the page needing to reload.

    Client side validation though should be treated as NO validation, as clients can disable this validation and input bad values.

    The server should always validate entered data. Client validation is only for usability.

提交回复
热议问题