DEV Community

Discussion on: Input Validation: Client-side or Server-side?

Collapse
 
nombrekeff profile image
Keff

Both, client-side for UX, so the user gets direct feedback. And server-side to really validate/verify the data and prevent errors.

At least the API should have validation or users will exploit it sooner or later.