DEV Community

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

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Server-side at two levels

Client side? Although I don't often allow text inputs, I actually apply validation as well as defensive programming quite often (I don't trust TypeScript). Also, if I allow user to input markdown, there will be DOMPurify.

And as Manolo said, text inputs need UI feedback, if it won't work anyway.