explicitly block mixed content

This commit is contained in:
Daniel Micay 2021-06-18 05:08:04 -04:00
parent 144698a02f
commit 391d7ef680

View File

@ -89,7 +89,7 @@ http {
root /usr/share/webapps/element;
include snippets/security-headers.conf;
add_header Content-Security-Policy "frame-ancestors 'self'";
add_header Content-Security-Policy "frame-ancestors 'self'; block-all-mixed-content";
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Robots-Tag "none";
}
@ -102,7 +102,7 @@ http {
root /var/empty;
include snippets/security-headers.conf;
add_header Content-Security-Policy "frame-ancestors 'none'";
add_header Content-Security-Policy "frame-ancestors 'none'; block-all-mixed-content";
add_header X-Frame-Options "DENY";
location = / {
@ -113,7 +113,7 @@ http {
proxy_hide_header Content-Security-Policy;
proxy_hide_header X-Frame-Options;
include snippets/security-headers.conf;
add_header Content-Security-Policy "frame-ancestors 'none'";
add_header Content-Security-Policy "frame-ancestors 'none'; block-all-mixed-content";
add_header X-Frame-Options "DENY";
add_header X-Robots-Tag "none";