mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2024-12-19 12:54:41 -05:00
set security headers on error responses too
This commit is contained in:
parent
444ad1a982
commit
d4e4cca682
@ -90,9 +90,9 @@ http {
|
||||
|
||||
include snippets/security-headers.conf;
|
||||
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
||||
add_header Content-Security-Policy "script-src 'none'; style-src 'none'; frame-ancestors 'none'; block-all-mixed-content";
|
||||
add_header Content-Security-Policy "script-src 'none'; style-src 'none'; frame-ancestors 'none'; block-all-mixed-content" always;
|
||||
# obsolete and replaced with Content-Security-Policy frame-ancestors 'none'
|
||||
add_header X-Frame-Options "DENY";
|
||||
add_header X-Frame-Options "DENY" always;
|
||||
|
||||
location = / {
|
||||
return 301 https://grapheneos.org/articles/grapheneos-servers#matrix.grapheneos.org;
|
||||
@ -103,9 +103,9 @@ http {
|
||||
proxy_hide_header X-Frame-Options;
|
||||
include snippets/security-headers.conf;
|
||||
add_header Cross-Origin-Resource-Policy "cross-origin" always;
|
||||
add_header Content-Security-Policy "script-src 'none'; style-src 'none'; frame-ancestors 'none'; block-all-mixed-content";
|
||||
add_header Content-Security-Policy "script-src 'none'; style-src 'none'; frame-ancestors 'none'; block-all-mixed-content" always;
|
||||
# obsolete and replaced with Content-Security-Policy frame-ancestors 'none'
|
||||
add_header X-Frame-Options "DENY";
|
||||
add_header X-Frame-Options "DENY" always;
|
||||
add_header X-Robots-Tag "none";
|
||||
|
||||
proxy_pass http://backend;
|
||||
@ -132,9 +132,9 @@ http {
|
||||
|
||||
include snippets/security-headers.conf;
|
||||
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
||||
add_header Content-Security-Policy "script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-ancestors 'self'; block-all-mixed-content";
|
||||
add_header Content-Security-Policy "script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-ancestors 'self'; block-all-mixed-content" always;
|
||||
# obsolete and replaced with Content-Security-Policy frame-ancestors 'self'
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
add_header X-Robots-Tag "none";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user