Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12461

Reply To: WordPress 4.4 brought more bad news

$
0
0

I found a WordPress Action that can be used to remove the Link Header:
Remove the Link header for the WP REST API from your Headers by adding this code in your Theme functions.php file.

// Remove the Link header for the WP REST API
// [link] => <http://www.example.com/wp-json/>; rel="https://api.w.org/"
remove_action( 'template_redirect', 'rest_output_link_header', 11, 0 );
  • This reply was modified 5 hours, 10 minutes ago by Profile photo of AITpro Admin AITpro Admin.
  • This reply was modified 5 hours, 8 minutes ago by Profile photo of AITpro Admin AITpro Admin.
  • This reply was modified 5 hours, 3 minutes ago by Profile photo of AITpro Admin AITpro Admin.
  • This reply was modified 3 hours, 31 minutes ago by Profile photo of AITpro Admin AITpro Admin.

Viewing all articles
Browse latest Browse all 12461

Trending Articles