Skip to content

Commit 584da53

Browse files
pandafynemesifier
authored andcommitted
[fix] Fixed duplicated conflicting Referrer-Policy header
(cherry picked from commit 004c487)
1 parent 5de4374 commit 584da53

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

images/common/openwisp/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@
7575
if HTTP_SCHEME == "https":
7676
SESSION_COOKIE_SECURE = True
7777
CSRF_COOKIE_SECURE = True
78+
SECURE_REFERRER_POLICY = "strict-origin-when-cross-origin"
79+
7880
if HTTP_SCHEME == "http":
7981
DJANGO_LOCI_GEOCODE_STRICT_TEST = False
8082

images/openwisp_nginx/openwisp.ssl.template.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ server {
2121
# Additional Security Headers
2222
add_header X-XSS-Protection "1; mode=block" always;
2323
add_header X-Content-Type-Options "nosniff" always;
24-
add_header Referrer-Policy "same-site" always;
2524
add_header Permissions-Policy "interest-cohort=()" always;
2625
add_header Strict-Transport-Security "max-age=31536000" always;
2726
add_header Content-Security-Policy "default-src http: https: data: blob: 'unsafe-inline'; script-src 'unsafe-eval' https: 'unsafe-inline' 'self'; frame-ancestors 'self'; connect-src *.${ROOT_DOMAIN}:${NGINX_SSL_PORT} wss: 'self'; worker-src https://${DOMAIN} blob: 'self';" always;

0 commit comments

Comments
 (0)