esolve
V2EX  ›  问与答

SpringMVC: 有何好的应对 XSS 攻击的处理方案?

  •  
  •   esolve · Dec 4, 2017 · 1936 views
    This topic created in 3165 days ago, the information mentioned may be changed or developed.

    我用 springmvc 的过滤器进行字符替换

    这样的话,如果是带 json 的 post 请求就会出问题

    有啥好一点的 XSS 应对方案?

    esolve
        1
    esolve  
    OP
       Dec 4, 2017
    顶顶顶
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5382 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 07:28 · PVG 15:28 · LAX 00:28 · JFK 03:28
    ♥ Do have faith in what you're doing.