mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
WebUI: don't send HTTP Referer header to other servers
`same-origin` > Sends the full URL (stripped of parameters) for same-origin requests. Cross-origin requests will contain no referrer header. This would be helpful for 3rd party WebUI that were forked from the official one. The official WebUI is not affect by this change since the request is blocked by CSP. PR #23294.
This commit is contained in:
@@ -503,7 +503,7 @@
|
||||
const iframeElement = document.createElement("iframe");
|
||||
iframeElement.id = "rssDescription";
|
||||
iframeElement.sandbox = "allow-same-origin"; // allowed to get parent css
|
||||
iframeElement.srcdoc = `<html ${rootColor}><head><meta charset="utf-8"><link rel="stylesheet" type="text/css" href="css/style.css?v=${CACHEID}"></head><body>${articleDescription}</body></html>`;
|
||||
iframeElement.srcdoc = `<html ${rootColor}><head><meta charset="utf-8"><meta name="referrer" content="same-origin"><link rel="stylesheet" type="text/css" href="css/style.css?v=${CACHEID}"></head><body>${articleDescription}</body></html>`;
|
||||
|
||||
detailsView.append(iframeElement);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user