Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么我们应该require('body-parser').urlencode在我的 node.js 或 express 应用中使用?它可以防止 XSS 吗?我在我的应用程序中使用它,但我不知道它是如何工作的。
require('body-parser').urlencode
不,它只会处理解码。查看其他候选人的关于“xss”的lusca和npm 模块。