try Aliyundrive norefer in output
parent
3b084f9544
commit
57f5a1cdd2
|
@ -844,7 +844,7 @@ function needUpdate()
|
||||||
function output($body, $statusCode = 200, $headers = ['Content-Type' => 'text/html'], $isBase64Encoded = false)
|
function output($body, $statusCode = 200, $headers = ['Content-Type' => 'text/html'], $isBase64Encoded = false)
|
||||||
{
|
{
|
||||||
if (isset($_SERVER['Set-Cookie'])) $headers['Set-Cookie'] = $_SERVER['Set-Cookie'];
|
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['Referrer-Policy'] = 'same-origin';
|
||||||
//$headers['X-Frame-Options'] = 'sameorigin';
|
//$headers['X-Frame-Options'] = 'sameorigin';
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Reference in New Issue