扫出一个session-cookie without secure flag set这个漏洞,在web.xml里加

    <cookie-config>

 <http-only>true</http-only>
    <secure>true</secure>
  </cookie-config>这个配置;

但是我加了之后,原来存在cookie里的东西就读取不了,导致登录失败;js不能操作cookie了