Allow fallbacks for $wgReferrerPolicy
[lhc/web/wiklou.git] / includes / DefaultSettings.php
index d0a02de..163e253 100644 (file)
@@ -316,7 +316,7 @@ $wgAppleTouchIcon = false;
 
 /**
  * Value for the referrer policy meta tag.
- * One of the values defined in the Referrer Policy specification:
+ * One or more of the values defined in the Referrer Policy specification:
  * https://w3c.github.io/webappsec-referrer-policy/
  * ('no-referrer', 'no-referrer-when-downgrade', 'same-origin',
  * 'origin', 'strict-origin', 'origin-when-cross-origin',
@@ -324,8 +324,12 @@ $wgAppleTouchIcon = false;
  * Setting it to false prevents the meta tag from being output
  * (which results in falling back to the Referrer-Policy header,
  * or 'no-referrer-when-downgrade' if that's not set either.)
+ * Setting it to an array (supported since 1.31) will create a meta tag for
+ * each value, in the reverse of the order (meaning that the first array element
+ * will be the default and the others used as fallbacks for browsers which do not
+ * understand it).
  *
- * @var string|bool
+ * @var array|string|bool
  * @since 1.25
  */
 $wgReferrerPolicy = false;