Skip to content

Instantly share code, notes, and snippets.

@Kishimoto96
Created April 14, 2023 20:14
Show Gist options
  • Save Kishimoto96/64469b299686ba834d1bb2eac054a959 to your computer and use it in GitHub Desktop.
Save Kishimoto96/64469b299686ba834d1bb2eac054a959 to your computer and use it in GitHub Desktop.

Server-side Validation Discussion

  1. What is server-side validation?
  2. How can server-side validation help prevent security vulnerabilities?
  3. What is the role of client-side validation?
  4. If we have client-side validation, why do we even need a server-side validation?
  5. How does the express-validator package simplify server-side validation in Node.js applications?
@saidbaradai
Copy link

  1. Server-side validation is a process that checks the validity of user input on the server.
  2. with validation we enforce the user to input a valid data, and prevent him form input string instead number for example.
  3. client-side validation check the validity of the user input in the client side without communicating with the server(email typography validation for example).
  4. with server side validation we wrote the validation rules in one place for all the clients (web browser, mobile)
  5. we don't know :)

@MuhammedHasan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment