Config: $http_response_custom_headers in pukiwiki.ini.php
// Output common HTTP headers
function pkwk_common_headers()
{
+ global $http_response_custom_headers;
if (! PKWK_OPTIMISE) pkwk_headers_sent();
-
+ foreach ($http_response_custom_headers as $header) {
+ header($header);
+ }
if(defined('PKWK_ZLIB_LOADABLE_MODULE')) {
$matches = array();
if(ini_get('zlib.output_compression') &&
$html_meta_referrer_policy = '';
/////////////////////////////////////////////////
+// Output custom HTTP response headers
+$http_response_custom_headers = array(
+ // 'Strict-Transport-Security: max-age=86400',
+ // 'X-Content-Type-Options: nosniff',
+);
+
+/////////////////////////////////////////////////
// $whatsnew: Max number of RecentChanges
$maxshow = 500;