Removed Referrer policy since MW has its implementation > 1.31

This commit is contained in:
alistair3149 2019-12-31 01:41:03 -05:00
parent 40f5439b8d
commit 268e00850b
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C
2 changed files with 0 additions and 23 deletions

View file

@ -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'
*/

View file

@ -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",