I am trying to implement an embeddable widget that functions similarly to the built-in Twitter tweet. The simplest solution, although perhaps not the best, seems to be a built-in iframe or HTML5, but both of them are blocked by the X-Frame-Options header on the server.
I am running PHP 5.3 and Apache 2.2 on a dedicated server under full control.
I tried to put in the first line of the very first line of the PHP iframe file:
header_remove("X-Frame-Options");
I tried adding the following to .htaccess:
Header unset X-Frame-Options
I checked httpd.conf, the vhost.conf file, even PHP.INI, and searched for "x-frame" - nothing seems to be relevant in any.
There are no mod_security or other plugins to be entered on this server that I see.
However, curl checks the following HTTP header no matter what I do:
X-Frame-Options: DENY
Are there any possibly oddly named settings somewhere that could still force this header?
Corey source share