Setting X-Frame-Options to allow using external.conf

Hi,

I'm running the most current stable version of pi-hole on an rpi. I want to use an iFrame on an intranet page to display the pi-hole web interface. To achieve this, I have changed below parameter to ALLOW:

    "X-Frame-Options" => "ALLOW",

Of course, updating pi-hole will revert this setting back to defaults. I read that external.conf can be used to permanently change settings. Unfortunately, all tests with external.conf were not successfully. The external.conf documentation was also not helpful.

Anyone can provide a quick info how to set it there?

thanks

Try this:

$HTTP["url"] =~ "^/admin/" {
    setenv.set-response-header = ( "X-Frame-Options" => "ALLOW" )
}
2 Likes

2 posts were split to a new topic: Lighttpd external.conf in v6