esolve
V2EX  ›  问与答

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

  •  
  •   esolve · Dec 4, 2017 · 1885 views
    This topic created in 3127 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   ·   867 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 21:17 · PVG 05:17 · LAX 14:17 · JFK 17:17
    ♥ Do have faith in what you're doing.