AdguardTeam / AdguardTeam/AdGuardHome

Session cookie prefixes

未关闭
#4,555 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
feature request
主要语言
TypeScript
星标
36.9k
派生
2.5k
PR 合并指标
30 天内没有已合并 PR

描述

To secure a session cookie `agh_session` even more, we could introduce a slight security improvement called [Cookie Prefixes](https://googlechrome.github.io/samples/cookie-prefixes/#:~:text=As%20described%20in%20an%20Internet,request%20to%20set%20a%20cookie.).

In other words, if a Control Panel is secured with HTTPS, a session cookie name should be changed from `agh_session` to `__Host-agh_session` (preferable) or `__Secure-agh_session` (less preferable).

It seems that all major [browsers support it](https://caniuse.com/mdn-http_headers_set-cookie_cookie_prefixes)

Screenshot 2022-05-06 184855

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。