mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-09 06:17:58 +00:00
parent
eaee38a19e
commit
1e400df324
@ -683,6 +683,8 @@ void WebApplication::sessionStart()
|
||||
QByteArray cookieRawForm = cookie.toRawForm();
|
||||
if (m_isCSRFProtectionEnabled)
|
||||
cookieRawForm.append("; SameSite=Strict");
|
||||
else if (cookie.isSecure())
|
||||
cookieRawForm.append("; SameSite=None");
|
||||
setHeader({Http::HEADER_SET_COOKIE, QString::fromLatin1(cookieRawForm)});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user