Skip to content

Commit 2a0120d

Browse files
authored
web: set security headers also for non HTTPS
Fixes: jitsi#493
1 parent e6586f2 commit 2a0120d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

web/rootfs/defaults/meet.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ ssi_types application/x-javascript application/javascript;
1111
index index.html index.htm;
1212
error_page 404 /static/404.html;
1313

14+
# Security headers
15+
add_header X-Content-Type-Options nosniff;
16+
add_header X-XSS-Protection "1; mode=block";
17+
1418
location = /config.js {
1519
alias /config/config.js;
1620
}

web/rootfs/defaults/ssl.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,3 @@ ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-
2020

2121
# headers
2222
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
23-
add_header X-Content-Type-Options nosniff;
24-
add_header X-XSS-Protection "1; mode=block";

0 commit comments

Comments
 (0)