mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
Allow qr code iframe
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
8d6ce78c65
commit
2eff53b2bb
2 changed files with 8 additions and 4 deletions
|
@ -93,8 +93,10 @@ $HTTP["url"] =~ "/teleporter\.php$" {
|
|||
}
|
||||
|
||||
# allow API qr code iframe on settings page
|
||||
$HTTP["url"] =~ "/admin/settings\.php$" {
|
||||
setenv.add-response-header = ( "X-Frame-Options" => "SAMEORIGIN" )
|
||||
$HTTP["url"] =~ "/api_token\.php$" {
|
||||
$HTTP["referer"] =~ "/admin/settings\.php" {
|
||||
setenv.add-response-header = ( "X-Frame-Options" => "SAMEORIGIN" )
|
||||
}
|
||||
}
|
||||
|
||||
# Default expire header
|
||||
|
|
|
@ -101,8 +101,10 @@ $HTTP["url"] =~ "/teleporter\.php$" {
|
|||
}
|
||||
|
||||
# allow API qr code iframe on settings page
|
||||
$HTTP["url"] =~ "/admin/settings\.php$" {
|
||||
setenv.add-response-header = ( "X-Frame-Options" => "SAMEORIGIN" )
|
||||
$HTTP["url"] =~ "/api_token\.php$" {
|
||||
$HTTP["referer"] =~ "/admin/settings\.php" {
|
||||
setenv.add-response-header = ( "X-Frame-Options" => "SAMEORIGIN" )
|
||||
}
|
||||
}
|
||||
|
||||
# Default expire header
|
||||
|
|
Loading…
Reference in a new issue