From: Soren Stoutner Date: Thu, 4 Jun 2026 17:50:19 +0000 (-0700) Subject: Stop sending the Referer header. https://redmine.stoutner.com/issues/1161 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=94c46e53db9f5f3a3059cb073ae32d4da63087a1;p=PrivacyBrowserPC.git Stop sending the Referer header. https://redmine.stoutner.com/issues/1161 --- diff --git a/src/interceptors/UrlRequestInterceptor.cpp b/src/interceptors/UrlRequestInterceptor.cpp index b0b4029..685b126 100644 --- a/src/interceptors/UrlRequestInterceptor.cpp +++ b/src/interceptors/UrlRequestInterceptor.cpp @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: GPL-3.0-or-later - * SPDX-FileCopyrightText: 2022-2025 Soren Stoutner + * SPDX-FileCopyrightText: 2022-2026 Soren Stoutner * * This file is part of Privacy Browser PC . * @@ -36,6 +36,9 @@ void UrlRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &urlReques if (urlRequestInfo.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeMainFrame) Q_EMIT newMainFrameResource(); + // Remove the referer header. + urlRequestInfo.setHttpHeader("Referer", ""); + // Create a requests struct. RequestStruct *requestStructPointer = new RequestStruct;