From 644c23577b352433d5ae8ea3c51fe89ad40a6ac0 Mon Sep 17 00:00:00 2001 From: TBK Date: Wed, 31 Jul 2019 14:47:45 +0200 Subject: [PATCH] Update nginx headers --- app/default.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/default.conf b/app/default.conf index 5569342..b8301b1 100644 --- a/app/default.conf +++ b/app/default.conf @@ -9,13 +9,13 @@ server { client_body_timeout 120s; # Default is 60, May need to be increased for very large uploads client_body_buffer_size 128k; - add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self'; connect-src 'self'; font-src 'self'; form-action 'self'; report-uri https://.report-uri.com/r/d/csp/enforce;" always; + add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self'; connect-src 'self'; font-src 'self'; form-action 'self'; frame-ancestors 'none'; report-uri https://.report-uri.com/r/d/csp/enforce; report-to default;" always; add_header Expect-CT "enforce; max-age=604800; report-uri=https://.report-uri.com/r/d/ct/enforce"; add_header Feature-Policy "accelerometer 'none'; ambient-light-sensor 'none'; encrypted-media 'none'; camera 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; midi 'none'; payment 'none'; sync-xhr 'none'; usb 'none'; vr 'none'"; add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload" always; add_header Referrer-Policy "strict-origin"; - add_header X-Xss-Protection "1; mode=block; report=https://.report-uri.com/r/d/xss/enforce" always; - add_header X-Frame-Options "DENY" always; + add_header Report-To "{'group':'default','max_age':31536000,'endpoints':[{'url':'https://.report-uri.com/a/d/g'}],'include_subdomains':true}"; + add_header NEL "{'report_to':'default','max_age':31536000,'include_subdomains':true}"; add_header X-Content-Type-Options nosniff; # Firefox CSP bug workaround - https://bugzilla.mozilla.org/show_bug.cgi?id=1262842