mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 14:20:18 +00:00
Merge pull request #4461 from pi-hole/qr_iframe
Companion to pi-hole/adminlte #1996
This commit is contained in:
commit
3a67d1cf8d
2 changed files with 4 additions and 4 deletions
|
@ -85,8 +85,8 @@ $HTTP["url"] =~ "^/admin/\.(.*)" {
|
||||||
url.access-deny = ("")
|
url.access-deny = ("")
|
||||||
}
|
}
|
||||||
|
|
||||||
# allow teleporter iframe on settings page
|
# allow teleporter and API qr code iframe on settings page
|
||||||
$HTTP["url"] =~ "/teleporter\.php$" {
|
$HTTP["url"] =~ "/(teleporter|api_token)\.php$" {
|
||||||
$HTTP["referer"] =~ "/admin/settings\.php" {
|
$HTTP["referer"] =~ "/admin/settings\.php" {
|
||||||
setenv.add-response-header = ( "X-Frame-Options" => "SAMEORIGIN" )
|
setenv.add-response-header = ( "X-Frame-Options" => "SAMEORIGIN" )
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,8 +93,8 @@ $HTTP["url"] =~ "^/admin/\.(.*)" {
|
||||||
url.access-deny = ("")
|
url.access-deny = ("")
|
||||||
}
|
}
|
||||||
|
|
||||||
# allow teleporter iframe on settings page
|
# allow teleporter and API qr code iframe on settings page
|
||||||
$HTTP["url"] =~ "/teleporter\.php$" {
|
$HTTP["url"] =~ "/(teleporter|api_token)\.php$" {
|
||||||
$HTTP["referer"] =~ "/admin/settings\.php" {
|
$HTTP["referer"] =~ "/admin/settings\.php" {
|
||||||
setenv.add-response-header = ( "X-Frame-Options" => "SAMEORIGIN" )
|
setenv.add-response-header = ( "X-Frame-Options" => "SAMEORIGIN" )
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue