mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Set HttpOnly attribute to SID cookie
This commit is contained in:
parent
9eb01fbe4d
commit
e9bd75f4e1
1 changed files with 1 additions and 0 deletions
|
@ -354,6 +354,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