1

As per Refused to execute a JavaScript script. Source code of script found within request, I would like to send this code with pages of my Wordpress site:

<?php header("X-XSS-Protection: 0");?>

Where do I put it?

Community
  • 1
  • 1
Kenneth Vogt
  • 985
  • 4
  • 12
  • 28

1 Answers1

1

You can it to the top of the index.php in the wordpress docroot. You need to modify the header before ANY content is sent.

If you update your site with a new worpress version you could lose this change. Just be aware.

Ray
  • 40,256
  • 21
  • 101
  • 138