Why do we need to add server-side validation? Didn't we add validation in the front-end section?

Why do we need to add server-side validation? Didn't we add validation in the front-end section?

Hi!

It’s a basic principle of web development that we can’t prevent the users from inspecting and modifying the source code of an app. The browser needs HTML, CSS and JS to run the app, and everyone can inspect and modify anything in the browser’s dev tools:

academind.com/learn/javascript/hide-javascr..

So we absolutely have to implement validation on server side. The client side validation is just a matter of convenience, preventing data from being sent to the server which would be rejected by the server anyway.