XSS prevention in JSP/Servlet web application

前端 未结 9 1573
自闭症患者
自闭症患者 2020-11-21 13:55

How can I prevent XSS attacks in a JSP/Servlet web application?

9条回答
  •  天命终不由人
    2020-11-21 14:16

    My personal opinion is that you should avoid using JSP/ASP/PHP/etc pages. Instead output to an API similar to SAX (only designed for calling rather than handling). That way there is a single layer that has to create well formed output.

提交回复
热议问题