mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 22:35:45 +00:00
Removed Referrer policy since MW has its implementation > 1.31
This commit is contained in:
parent
40f5439b8d
commit
268e00850b
|
@ -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'
|
||||
*/
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue