mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
parent
eaee38a19e
commit
1e400df324
1 changed files with 2 additions and 0 deletions
|
@ -683,6 +683,8 @@ void WebApplication::sessionStart()
|
||||||
QByteArray cookieRawForm = cookie.toRawForm();
|
QByteArray cookieRawForm = cookie.toRawForm();
|
||||||
if (m_isCSRFProtectionEnabled)
|
if (m_isCSRFProtectionEnabled)
|
||||||
cookieRawForm.append("; SameSite=Strict");
|
cookieRawForm.append("; SameSite=Strict");
|
||||||
|
else if (cookie.isSecure())
|
||||||
|
cookieRawForm.append("; SameSite=None");
|
||||||
setHeader({Http::HEADER_SET_COOKIE, QString::fromLatin1(cookieRawForm)});
|
setHeader({Http::HEADER_SET_COOKIE, QString::fromLatin1(cookieRawForm)});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue