这种方式对Cookie 这是 httpOnly 后,还是不生效,为什么呢?
if (cookies != null) { Cookie cookie = cookies[0]; if (cookie != null) { cookie.setHttpOnly(true); cookie.setPath("/"); response.addCookie(cookie); } }