From 57f5a1cdd2ce545dfbd24723abcbdce1e4863d88 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 13 May 2021 09:43:57 +0800 Subject: [PATCH] try Aliyundrive norefer in output --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 20d8f2d..0a73754 100644 --- a/common.php +++ b/common.php @@ -844,7 +844,7 @@ function needUpdate() function output($body, $statusCode = 200, $headers = ['Content-Type' => 'text/html'], $isBase64Encoded = false) { if (isset($_SERVER['Set-Cookie'])) $headers['Set-Cookie'] = $_SERVER['Set-Cookie']; - //$headers['Referrer-Policy'] = 'no-referrer'; + if (baseclassofdrive()=='Aliyundrive') $headers['Referrer-Policy'] = 'no-referrer'; //$headers['Referrer-Policy'] = 'same-origin'; //$headers['X-Frame-Options'] = 'sameorigin'; return [