From 268e00850b4f34acb4ac7f3ba236168ff1ca1563 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Tue, 31 Dec 2019 01:41:03 -0500 Subject: [PATCH] Removed Referrer policy since MW has its implementation > 1.31 --- includes/SkinCitizen.php | 17 ----------------- skin.json | 6 ------ 2 files changed, 23 deletions(-) diff --git a/includes/SkinCitizen.php b/includes/SkinCitizen.php index adc7afa8..d62ce37f 100644 --- a/includes/SkinCitizen.php +++ b/includes/SkinCitizen.php @@ -44,9 +44,6 @@ class SkinCitizen extends SkinTemplate { // Deny X-Frame-Options $this->addXFrameOptions(); - // Strict referrer policy - $this->addStrictReferrerPolicy(); - // Feature policy $this->addFeaturePolicy(); @@ -168,20 +165,6 @@ class SkinCitizen extends SkinTemplate { } } - /** - * Adds the referrer header if enabled in 'CitizenEnableStrictReferrerPolicy' - */ - private function addStrictReferrerPolicy() { - if ( $this->getConfigValue( 'CitizenEnableStrictReferrerPolicy' ) === true ) { - // iOS Safari, IE, Edge compatiblity - $this->out->addMeta( 'referrer', 'strict-origin' ); - $this->out->addMeta( 'referrer', 'strict-origin-when-cross-origin' ); - $this->out->getRequest() - ->response() - ->header( 'Referrer-Policy: strict-origin-when-cross-origin' ); - } - } - /** * Adds the Feature policy header to the response if enabled in 'CitizenFeaturePolicyDirective' */ diff --git a/skin.json b/skin.json index 310beb19..73433c35 100644 --- a/skin.json +++ b/skin.json @@ -81,12 +81,6 @@ "descriptionmsg": "citizen-config-enabledenyxframeoptions", "public": true }, - "EnableStrictReferrerPolicy": { - "value": false, - "description": "Enable or disable strict-origin-when-cross-origin referrer policy", - "descriptionmsg": "citizen-config-enablestrictreferrerpolicy", - "public": true - }, "EnableFeaturePolicy": { "value": false, "description": "Enable or disable Feature Policy",