Akash Babu
Akash Babu

Reputation: 247

does body-parser's urlencode prevent xss?

Why should we use require('body-parser').urlencode in my node.js or express app? Does it prevent XSS? Im using it in my app and I don't know how it works.

Upvotes: 0

Views: 716

Answers (1)

Peter Lyons
Peter Lyons

Reputation: 146094

No, it will only handle the decoding. Have a look at lusca and npm modules about "xss" for other candidates.

Upvotes: 1

Related Questions