I have hosted a website which is created using Wordpress.
I am getting a security alert saying "X-Frame-Options Header Not Set", but I can't figure out what that means.
Can anyone explain what this warning is about, and give me a solution on how to stop it from occuring?
Option 1 : Go to wordpress-root/wp-includes/functions.php and search for "X-Frame-Options" and you will find the function
If X-Frame-Options is not defined inside your functions.php file, you just paste the code inside functions.php. To Prevent the site from cross-frame-scripting in Wordpress use X-Frame-Options to SAMEORIGIN.
Option 2:
Or you can set X-Frame-Options from the .htaccess file which is situated inside the root folder of wordpress. Just paste the below code inside .htaccess file.