summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2021-03-31 14:50:36 -0400
committerDaniel Micay <danielmicay@gmail.com>2021-03-31 14:50:36 -0400
commit42c521e38b0b117d9f2aa71ed82a75320386a367 (patch)
treed96a57e01aa7c848655fbb5c2f0ec9c741c768cd /nginx
parent797a66ccff87a37774db6a1f295b0d80d745fe94 (diff)
expand same-origin CORP header usage
Diffstat (limited to 'nginx')
-rw-r--r--nginx/nginx.conf7
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 {