mirror of
https://github.com/znc/znc.git
synced 2026-04-30 10:34:16 +02:00
Use SameSite=strict cookies consistently (#1450)
This commit is contained in:
committed by
Alexey Sokolov
parent
42d30901d4
commit
dca012f0b7
@@ -743,7 +743,7 @@ bool CHTTPSock::PrintHeader(off_t uContentLength, const CString& sContentType,
|
||||
for (const auto& it : m_msResponseCookies) {
|
||||
Write("Set-Cookie: " + it.first.Escape_n(CString::EURL) + "=" +
|
||||
it.second.Escape_n(CString::EURL) + "; HttpOnly; path=/;" +
|
||||
(GetSSL() ? "Secure;" : "") + "\r\n");
|
||||
(GetSSL() ? "Secure;" : "") + " SameSite=Strict;\r\n");
|
||||
}
|
||||
|
||||
for (const auto& it : m_msHeaders) {
|
||||
|
||||
Reference in New Issue
Block a user