仅脚本 cookie?
所以,基本上我想要的是与 httponly cookie 完全相反的。我想通过 JavaScript 在浏览器中设置 cookie,并且只能通过 JavaScript 检索它。这意味着 cookie不会发送到服务器。
用例是 JS 应用程序通过未加密的 http 连接提供服务。这意味着 cookie 也会以未加密的方式发送到服务器,并且可以被嗅探。
So, basically what I want is the exact opposite of httponly cookies. I want to set a cookie in the browser via JavaScript and be able to retrieve it via JavaScript only. Meaning, that the cookie is not sent to the server.
The use case is that the JS application is served from an unencrypted http connection. That means that the cookie is sent to the server unencrypted as well and can be sniffed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要的是:
What you need is :