- What is server-side validation?
- How can server-side validation help prevent security vulnerabilities?
- What is the role of client-side validation?
- If we have client-side validation, why do we even need a server-side validation?
- How does the express-validator package simplify server-side validation in Node.js applications?
          Created
          April 14, 2023 20:14 
        
      - 
      
- 
        Save Kishimoto96/64469b299686ba834d1bb2eac054a959 to your computer and use it in GitHub Desktop. 
Cansu, Mohammad, Motaz
- Server-side validation, also known as server-side form validation, is a process of validating user input on a web application's server-side, rather than on the client-side. It involves checking and validating user-submitted data on the server before processing it or storing it in a database.
- server-side validation is an essential security measure in web applications that helps prevent security vulnerabilities, protects against attacks, and ensures the integrity and accuracy of user-submitted data:
- Data integrity
- Input validation
- Business rule validation
- Error handling
- Defense in depth
 
- Client-side validation is a process of validating user input on the client-side, typically within a web browser, before data is submitted to the server for processing. It involves using JavaScript or other client-side scripting languages to validate data entered by users in web forms or other input fields.
- Client-side validation can provide immediate feedback to users and help improve user experience in web applications, it is not sufficient on its own for ensuring security and data integrity.
- express-validator package simplifies server-side validation in Node.js applications by providing a comprehensive set of validation functions, error handling, sanitization, and customization capabilities. It integrates seamlessly with Express middleware and allows you to create robust and secure validation logic for your application with ease.
- Server-side validation is a process that checks the validity of user input on the server.
- with validation we enforce the user to input a valid data, and prevent him form input string instead number for example.
- client-side validation check the validity of the user input in the client side without communicating with the server(email typography validation for example).
- with server side validation we wrote the validation rules in one place for all the clients (web browser, mobile)
- we don't know :)
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Harith - Fatima - Ahmed
1- It generally means figuring out if the data being sent to the API is any good or not. Validation can happen both on client-side before sending the request or on server-side when receiving the request.
* Types of Validation
* required
* minlength and maxlength
* min and max
* type
* pattern
* business rules validation