我正在 Postman 中测试我的 API,但在模拟时遇到问题log out.
If I do a call to delete the session cookie,
![postman request](https://i.stack.imgur.com/sYldZ.png)
the session cookie is still there afterwards, and I'm still able to access routes that require authentication.
服务器上的路由处理程序是:
server.route({
method: 'DELETE',
path: '/sessions/_current',
handler: function(req, reply){
req.auth.session.clear();
reply({}).code(204);
}
});
This is Node.js with Hapi but it shouldn't matter.
有没有办法删除所有cookie在邮递员或手动某些cookie?
Postman 4.0.5 有一个功能名为管理 Cookie位于以下Send按钮似乎与 Chrome 分开管理 cookie。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)