Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/e2e2/spec/test_www.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def test_security_headers(api_anon, url):
"block-all-mixed-content; form-action 'none';",
'X-Frame-Options': 'deny',
'X-Content-Type-Options': 'nosniff',
'Permissions-Policy': 'camera=(), microphone=(), geolocation=(), payment=()',
'Referrer-Policy': 'strict-origin-when-cross-origin',
'X-XSS-Protection': '1; mode=block',
}
Expand Down
1 change: 1 addition & 0 deletions www/conf/sites-available/90-desec.static.location
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ location / {
add_header Content-Security-Policy "default-src 'self'; frame-src 'none'; connect-src 'self'; font-src 'self' data:; img-src 'self' data:; media-src data:; script-src 'self'; style-src 'self' 'unsafe-inline'; base-uri 'self'; frame-ancestors 'none'; block-all-mixed-content; form-action 'none';" always;
add_header X-Frame-Options "deny" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=()" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header X-XSS-Protection "1; mode=block" always;
}
Expand Down