1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-29 21:10:31 +02:00

Merge pull request #5628 from marc1706/ticket/16101

[ticket/16101] Add Referrer-Policy header to phpBB's headers
This commit is contained in:
Derky
2019-07-30 07:34:13 +02:00
2 changed files with 4 additions and 2 deletions

View File

@@ -4591,12 +4591,13 @@ function page_header($page_title = '', $display_online_list = false, $item_id =
if ($send_headers)
{
// An array of http headers that phpbb will set. The following event may override these.
// An array of http headers that phpBB will set. The following event may override these.
$http_headers += array(
// application/xhtml+xml not used because of IE
'Content-type' => 'text/html; charset=UTF-8',
'Cache-Control' => 'private, no-cache="set-cookie"',
'Expires' => gmdate('D, d M Y H:i:s', time()) . ' GMT',
'Referrer-Policy' => 'strict-origin-when-cross-origin',
);
if (!empty($user->data['is_bot']))
{