DEV Community

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

Collapse
 
rolfstreefkerk profile image
Rolf Streefkerk

The only answer is both, for the simple reason your server can't trust anything it's receiving and the client needs to make sure it adheres to the constraints set by the contract (API, Websocket, GraphQL etc.)