Put in order · NestJS course · Module 10: Data Validation
API Protection Layer Order
Arrange the API protection layers from the first to the last line of defense:
Items to put in order
- ValidationPipe (input data validation)
- Guards (authorization and authentication)
- CORS (request origin control)
- Business logic (business logic in the service)
You can check the correct answer by solving this task in the CodeWorlds game.