mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 23:42:46 -07:00
[WebUI] Avoid clickjacking attacks
This commit is contained in:
parent
f9c39e3dac
commit
f5ad04766f
2 changed files with 6 additions and 1 deletions
|
@ -103,7 +103,11 @@ Http::Response AbstractWebApplication::processRequest(const Http::Request &reque
|
|||
request_ = request;
|
||||
env_ = env;
|
||||
|
||||
clear(); // clear response
|
||||
// clear response
|
||||
clear();
|
||||
|
||||
// avoid clickjacking attacks
|
||||
header(Http::HEADER_X_FRAME_OPTIONS, "SAMEORIGIN");
|
||||
|
||||
sessionInitialize();
|
||||
if (!sessionActive() && !isAuthNeeded())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue