mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 01:41:01 +01:00
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";
|
||||
|
||||
# generate frame configuration from origin header
|
||||
set $frameOptions "DENY";
|
||||
set $contentSecurityPolicy "frame-ancestors 'none'";
|
||||
if ($frameOptions = '')
|
||||
{
|
||||
set $frameOptions "DENY";
|
||||
set $contentSecurityPolicy "frame-ancestors 'none'";
|
||||
}
|
||||
|
||||
# used for iframes on https://mempool.space/network
|
||||
if ($http_referer ~ ^https://mempool.space/)
|
||||
|
Loading…
Reference in New Issue
Block a user