mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-01 01:16:38 +00:00
Enable strict origin referrer policy
This commit is contained in:
parent
67ca36e631
commit
59aa0d9ab0
|
@ -48,13 +48,16 @@ class SkinCitizen extends SkinTemplate {
|
|||
);
|
||||
}
|
||||
// Referrer policy
|
||||
// iOS Safari, IE, Edge compatiblity
|
||||
$out->addMeta( 'referrer',
|
||||
'strict-origin'
|
||||
);
|
||||
$out->addMeta( 'referrer',
|
||||
'strict-origin-when-cross-origin'
|
||||
);
|
||||
if ( $this->getConfig()->get( 'CitizenEnableReferrerPolicy' ) ) {
|
||||
// iOS Safari, IE, Edge compatiblity
|
||||
$out->addMeta( 'referrer',
|
||||
'strict-origin'
|
||||
);
|
||||
$out->addMeta( 'referrer',
|
||||
'strict-origin-when-cross-origin'
|
||||
);
|
||||
$out->getRequest()->response()->header( 'Referrer-Policy: strict-origin-when-cross-origin' );
|
||||
}
|
||||
|
||||
$out->addModuleStyles( [
|
||||
'mediawiki.skinning.content.externallinks',
|
||||
|
|
|
@ -37,6 +37,12 @@
|
|||
"descriptionmsg": "citizen-config-enablemanifest",
|
||||
"public": true
|
||||
},
|
||||
"EnableReferrerPolicy": {
|
||||
"value": false,
|
||||
"description": "Enable or disable strict-origin-when-cross-origin referrer policy",
|
||||
"descriptionmsg": "citizen-config-enablereferrerpolicy",
|
||||
"public": true
|
||||
},
|
||||
"ManifestThemeColor": {
|
||||
"value": "#11151d",
|
||||
"description": "The theme color defined in the web app manifest",
|
||||
|
|
Loading…
Reference in a new issue