1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-24 12:35:25 +01:00

add X-Frame-Options specifically

This commit is contained in:
Kyle Spearrin 2018-08-31 22:37:49 -04:00
parent 2562d5a40d
commit 6b8fdc1a98
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,3 @@
add_header Referrer-Policy same-origin;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";

View File

@ -55,6 +55,7 @@ server {
{{/if}}
include /etc/nginx/security-headers.conf;
add_header Content-Security-Policy "{{{ContentSecurityPolicy}}}";
add_header X-Frame-Options SAMEORIGIN;
}
location = /app-id.json {
@ -103,5 +104,10 @@ server {
location /admin {
proxy_pass http://admin:5000;
{{#if Ssl}}
include /etc/nginx/security-headers-ssl.conf;
{{/if}}
include /etc/nginx/security-headers.conf;
add_header X-Frame-Options SAMEORIGIN;
}
}