Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F17857952
D19144.id45865.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
784 B
Referenced Files
None
Subscribers
None
D19144.id45865.diff
View Options
diff --git a/src/aphront/response/AphrontResponse.php b/src/aphront/response/AphrontResponse.php
--- a/src/aphront/response/AphrontResponse.php
+++ b/src/aphront/response/AphrontResponse.php
@@ -92,6 +92,8 @@
$headers[] = array('Content-Security-Policy', $csp);
}
+ $headers[] = array('Referrer-Policy', 'no-referrer');
+
return $headers;
}
diff --git a/src/view/page/PhabricatorBarePageView.php b/src/view/page/PhabricatorBarePageView.php
--- a/src/view/page/PhabricatorBarePageView.php
+++ b/src/view/page/PhabricatorBarePageView.php
@@ -119,7 +119,7 @@
'meta',
array(
'name' => 'referrer',
- 'content' => 'never',
+ 'content' => 'no-referrer',
));
$response = CelerityAPI::getStaticResourceResponse();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jul 28, 7:02 PM (1 d, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8680059
Default Alt Text
D19144.id45865.diff (784 B)
Attached To
Mode
D19144: Add "Referrer-Policy: no-referrer" to standard HTTP headers
Attached
Detach File
Event Timeline
Log In to Comment