ஒரு Node app-ஐ பாதுகாப்பது என்பது பல layers-இல் பொதுவான web vulnerabilities-க்கு (OWASP Top 10) எதிராக தற்காத்துக் கொள்வதாகும் — input handling, authentication, dependencies, மற்றும் configuration. Security என்பது layered (defense in depth), ஒரே fix அல்ல.
1. அனைத்து input-ஐயும் validate மற்றும் sanitize செய்யுங்கள்
{ z } ;
schema = z.({ : z.().(), : z.().() });
data = schema.(req.);
