Preventing XSS in Node.js / server side javascript

后端 未结 8 1992
花落未央
花落未央 2020-12-07 10:24

Any idea how one would go about preventing XSS attacks on a node.js app? Any libs out there that handle removing javascript in hrefs, onclick attributes,etc. from POSTed dat

8条回答
  •  暖寄归人
    2020-12-07 10:49

    You can also look at ESAPI. There is a javascript version of the library. It's pretty sturdy.

提交回复
热议问题