From fabeef91977e4f82f742dd7cf823780dec109332 Mon Sep 17 00:00:00 2001 From: Dawid Potocki Date: Sun, 2 Aug 2020 03:43:32 +1200 Subject: [PATCH] Replace Alt-Svc with Onion-Location header Onion-Location is a preferred way by Tor Project to indicate an available onion service, introduced in Tor Browser 9.5. It allows users to make Tor Browser always use onion version or to display a badge in a url bar, which redirects to an onion version. https://community.torproject.org/onion-services/advanced/onion-location/ --- nginx/010-headers.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/010-headers.conf b/nginx/010-headers.conf index 9713656a..fe126e6c 100644 --- a/nginx/010-headers.conf +++ b/nginx/010-headers.conf @@ -4,7 +4,7 @@ add_header X-Content-Type-Options nosniff always; add_header Content-Security-Policy "default-src 'none'; script-src 'self' https://stats.privacytools.io; style-src 'self'; img-src 'self' data: https://*.privacytools.io; object-src 'none'; frame-src https://stats.privacytools.io; font-src 'self'; base-uri 'none'; form-action 'self' https://search.privacytools.io; frame-ancestors 'none'; manifest-src 'self';" always; add_header 'Access-Control-Allow-Origin' '*'; add_header Strict-Transport-Security "max-age=31557600; includeSubDomains; preload"; -add_header Alt-Svc 'h2="privacy2zbidut4m4jyj3ksdqidzkw3uoip2vhvhbvwxbqux5xy5obyd.onion:443"; ma=86400; persist=1'; +add_header Onion-Location http://privacy2zbidut4m4jyj3ksdqidzkw3uoip2vhvhbvwxbqux5xy5obyd.onion$request_uri always; add_header Expect-CT 'max-age=86400, enforce'; add_header Referrer-Policy "strict-origin"; add_header Feature-Policy "geolocation none;midi none;notifications none;push none;sync-xhr none;microphone none;camera none;magnetometer none;gyroscope none;speaker self;vibrate none;fullscreen self;payment none;"; -- 2.47.2