mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
ops: Don't always set frameoptions in nginx
This commit is contained in:
parent
c8ce4631e2
commit
cb63d17a2f
1 changed files with 5 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue