mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-12 00:59:46 +00:00
Added deny xframe
This commit is contained in:
parent
59aa0d9ab0
commit
4bd3cd2ec5
|
@ -47,8 +47,12 @@ class SkinCitizen extends SkinTemplate {
|
|||
]
|
||||
);
|
||||
}
|
||||
// Referrer policy
|
||||
if ( $this->getConfig()->get( 'CitizenEnableReferrerPolicy' ) ) {
|
||||
// Deny X-Frame-Options
|
||||
if ( $this->getConfig()->get( 'EnableDenyXFrameOptions' ) ) {
|
||||
$out->getRequest()->response()->header( 'X-Frame-Options: deny' );
|
||||
}
|
||||
// Strict referrer policy
|
||||
if ( $this->getConfig()->get( 'CitizenEnableStrictReferrerPolicy' ) ) {
|
||||
// iOS Safari, IE, Edge compatiblity
|
||||
$out->addMeta( 'referrer',
|
||||
'strict-origin'
|
||||
|
|
10
skin.json
10
skin.json
|
@ -37,10 +37,16 @@
|
|||
"descriptionmsg": "citizen-config-enablemanifest",
|
||||
"public": true
|
||||
},
|
||||
"EnableReferrerPolicy": {
|
||||
"EnableDenyXFrameOptions": {
|
||||
"value": false,
|
||||
"description": "Enable or disable the deny X-Frame-Options header",
|
||||
"descriptionmsg": "citizen-config-enabledenyxframeoptions",
|
||||
"public": true
|
||||
},
|
||||
"EnableStrictReferrerPolicy": {
|
||||
"value": false,
|
||||
"description": "Enable or disable strict-origin-when-cross-origin referrer policy",
|
||||
"descriptionmsg": "citizen-config-enablereferrerpolicy",
|
||||
"descriptionmsg": "citizen-config-enablestrictreferrerpolicy",
|
||||
"public": true
|
||||
},
|
||||
"ManifestThemeColor": {
|
||||
|
|
Loading…
Reference in a new issue