Skip to content

Commit 47eabda

Browse files
authored
Merge pull request #23 from wikimedia/1219-referrer-policy-fix
Remove incorrect referrer policy header
2 parents 49d03ba + 0d679e1 commit 47eabda

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

inc/http-headers.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ function bootstrap() {
1414
add_action( 'send_headers', __NAMESPACE__ . '\\enable_strict_transport_security' ); // Ensure HTTPS.
1515
add_action( 'send_headers', __NAMESPACE__ . '\\set_x_frame_options' ); // Prevent clickjacking by controlling frame embed options.
1616
add_action( 'send_headers', __NAMESPACE__ . '\\set_x_content_type_options' ); // Option of X Content Type.
17-
add_action( 'send_headers', __NAMESPACE__ . '\\set_referrer_policy' ); // Policy for referrer.
1817
add_action( 'send_headers', __NAMESPACE__ . '\\set_permissions_policy' ); // Policy for permissions.
1918
}
2019

@@ -40,13 +39,6 @@ function set_x_content_type_options() {
4039
header( 'X-Content-Type-Options: nosniff' );
4140
}
4241

43-
/**
44-
* Function for setting Referrer Policy. No referrer information.
45-
*/
46-
function set_referrer_policy() {
47-
header( 'Referrer-Policy: no-referrer' );
48-
}
49-
5042
/**
5143
* Finally, function for setting the Permissions Policy.
5244
* We're allowing only the fullscreen feature from our domain.

0 commit comments

Comments
 (0)