Alternative to using c:out to prevent XSS

后端 未结 3 1543
别跟我提以往
别跟我提以往 2020-12-31 17:15

I\'m working on preventing cross site scripting (XSS) in a Java, Spring based, Web application. I have already implemented a servlet filter similar to this example http://gr

3条回答
  •  长情又很酷
    2020-12-31 17:23

    I agree you shouldn't have to use c:out around every variable. I wrote a blog describing why at http://tech.finn.no/2011/04/08/xss-protection-whos-responsibility/

    It touches on much that is said here.

提交回复
热议问题