From 97b6d8664b552dce4343a0e5db462e141a32ae0a Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Wed, 28 Jun 2017 14:39:54 -0300 Subject: [PATCH] FIX: Move Referrer Policy header to right location --- config/nginx.sample.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index 940593719de..f679f2bc95c 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -83,7 +83,6 @@ server { location / { root $public; add_header ETag ""; - add_header Referrer-Policy 'no-referrer-when-downgrade'; # auth_basic on; # auth_basic_user_file /etc/nginx/htpasswd; @@ -240,6 +239,7 @@ server { } location @discourse { + add_header Referrer-Policy 'no-referrer-when-downgrade'; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;