mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Set HttpOnly attribute to SID cookie
This commit is contained in:
committed by
sledgehammer999
parent
7cd9b6f750
commit
bf8a438a6f
@@ -362,6 +362,7 @@ bool AbstractWebApplication::sessionStart()
|
||||
sessions_[session_->id] = session_;
|
||||
|
||||
QNetworkCookie cookie(C_SID, session_->id.toUtf8());
|
||||
cookie.setHttpOnly(true);
|
||||
cookie.setPath(QLatin1String("/"));
|
||||
header(Http::HEADER_SET_COOKIE, cookie.toRawForm());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user