mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-28 08:10:45 +00:00
Enable strict origin referrer policy
This commit is contained in:
parent
67ca36e631
commit
59aa0d9ab0
|
@ -48,6 +48,7 @@ class SkinCitizen extends SkinTemplate {
|
|||
);
|
||||
}
|
||||
// Referrer policy
|
||||
if ( $this->getConfig()->get( 'CitizenEnableReferrerPolicy' ) ) {
|
||||
// iOS Safari, IE, Edge compatiblity
|
||||
$out->addMeta( 'referrer',
|
||||
'strict-origin'
|
||||
|
@ -55,6 +56,8 @@ class SkinCitizen extends SkinTemplate {
|
|||
$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