ops: Don't always set frameoptions in nginx
This commit is contained in:
parent
c8ce4631e2
commit
cb63d17a2f
@ -8,8 +8,11 @@ add_header Onion-Location http://$onion.onion$request_uri;
|
|||||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
|
||||||
|
|
||||||
# generate frame configuration from origin header
|
# generate frame configuration from origin header
|
||||||
set $frameOptions "DENY";
|
if ($frameOptions = '')
|
||||||
set $contentSecurityPolicy "frame-ancestors 'none'";
|
{
|
||||||
|
set $frameOptions "DENY";
|
||||||
|
set $contentSecurityPolicy "frame-ancestors 'none'";
|
||||||
|
}
|
||||||
|
|
||||||
# used for iframes on https://mempool.space/network
|
# used for iframes on https://mempool.space/network
|
||||||
if ($http_referer ~ ^https://mempool.space/)
|
if ($http_referer ~ ^https://mempool.space/)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user