Skip to main content
4 events
when toggle format what by license comment
Apr 27, 2021 at 17:25 comment added JimmyJames @Konrad I don't think the argument is that client-side validations are not important. The point is that server-side validation is absolutely essential. Client-side validations are beneficial but not strictly necessary. It's something that needs to be pointed out again and again due to the fact that so many vulnerabilities are created by leaving validation to the client.
Apr 27, 2021 at 13:55 comment added Konrad I think JSON Schema is a pretty good way of combining these validation rules at least to a certain degree but yeah all of the solutions I can think of seem tricky. Regarding integration with the MVC framework, that might work fine for projects that use razor views. In the question I mentioned I use next.js/react.js so this won't work for me.
Apr 27, 2021 at 13:53 comment added Konrad To me, client-side validations are just as important as server-side validations. Server-side validations are only for the developer and for security purposes in case someone tries to forge requests manually and client-side are for UX and to decrease the number of server requests.
Apr 27, 2021 at 13:00 history answered Greg Burghardt CC BY-SA 4.0