how to Change the X-Frame-Options to allow all domains from cpanel in 5 minutes

Access your .htaccess file if you dont have please create it.

    • You can access it via an FTP client like FileZilla, or through the file manager in your hosting control panel (such as cPanel).
  1. Edit the .htaccess file:
    • Locate the .htaccess file in the root directory of your WordPress installation (or the directory of the site/subdomain you want to modify).
    • Download and open it in a text editor, or open it directly if using the hosting control panel.
  2. Add the following line to unset the X-Frame-Options header:
Header always unset X-Frame-Options

 

  1. Save the file:
    • Save the changes and upload the .htaccess file back to the server if using FTP.
    • If using the control panel’s file manager, simply save and exit.

This will remove the X-Frame-Options header from the responses, allowing your site to be embedded in an iframe. Make sure that this is what you want, as removing this header can increase the risk of clickjacking attacks.