mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 13:53:37 -07:00
Set HttpOnly attribute to SID cookie
This commit is contained in:
parent
7cd9b6f750
commit
bf8a438a6f
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue