Harden CSP and Referrer-Policy in HTML header

This commit is contained in:
Alexandre Iooss 2022-03-09 11:35:48 +01:00
parent f48f9b00e9
commit 2447735aec
2 changed files with 2 additions and 1 deletions

View file

@ -38,7 +38,6 @@ server {
client_max_body_size 2G;
add_header "X-XSS-Protection" "1; mode=block";
add_header "Content-Security-Policy" "default-src 'self' 'unsafe-inline';";
# Django statics and media
# Do not directly serve media, it must be authorized