如何在Google开发人员工具中获取安全Cookie?

时间:2018-06-07 03:46:26

标签: spring-mvc spring-boot cookies

我有以下代码......

String get( HttpServletResponse res ){
    Cookie c = new Cookie("sessionId", "testSession");
    c.setSecure(true);
    res.addCookie(c);
    return "index";
}

当我跑步时,我看到......

enter image description here

然后在浏览器中我看到......

enter image description here

这是应该工作的方式还是我可以看到安全cookie?

1 个答案:

答案 0 :(得分:0)

一定是期待的,好的'邮差...

enter image description here

相关问题