File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments