diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-03-31 14:50:36 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-03-31 14:50:36 -0400 |
| commit | 42c521e38b0b117d9f2aa71ed82a75320386a367 (patch) | |
| tree | d96a57e01aa7c848655fbb5c2f0ec9c741c768cd | |
| parent | 797a66ccff87a37774db6a1f295b0d80d745fe94 (diff) | |
expand same-origin CORP header usage
| -rw-r--r-- | nginx/nginx.conf | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index bb9c806d..e3d01146 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -88,6 +88,7 @@ http { root /var/empty; include snippets/security-headers.conf; + add_header Cross-Origin-Resource-Policy "same-origin"; return 301 https://grapheneos.org$request_uri; } @@ -100,6 +101,7 @@ http { root /var/empty; include snippets/security-headers.conf; + add_header Cross-Origin-Resource-Policy "same-origin"; return 302 https://github.com/GrapheneOS/Vanadium; } @@ -211,12 +213,14 @@ http { location = /404 { internal; include snippets/security-headers.conf; + add_header Cross-Origin-Resource-Policy "same-origin"; include snippets/preload.conf; } location = /404.html { internal; include snippets/security-headers.conf; + add_header Cross-Origin-Resource-Policy "same-origin"; include snippets/preload.conf; } @@ -232,6 +236,7 @@ http { location ~ "\.css$" { include snippets/security-headers.conf; + add_header Cross-Origin-Resource-Policy "same-origin"; add_header Cache-Control "public, max-age=31536000, immutable"; } @@ -242,6 +247,7 @@ http { location ~ "\.woff2$" { include snippets/security-headers.conf; + add_header Cross-Origin-Resource-Policy "same-origin"; add_header Cache-Control "public, max-age=31536000, immutable"; gzip_static off; brotli_static off; @@ -300,6 +306,7 @@ http { root /srv/mta-sts; include snippets/security-headers.conf; + add_header Cross-Origin-Resource-Policy "same-origin"; } server { |
