Page MenuHomePhabricator

D19158.id45894.diff
No OneTemporary

D19158.id45894.diff

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
@@ -154,6 +154,9 @@
// download URI instead of submitting a form to it.
$csp[] = "form-action 'self'";
+ // Block use of "<base>" to change the origin of relative URIs on the page.
+ $csp[] = "base-uri 'none'";
+
$csp = implode('; ', $csp);
return $csp;

File Metadata

Mime Type
text/plain
Expires
Wed, May 8, 10:26 PM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6263288
Default Alt Text
D19158.id45894.diff (476 B)

Event Timeline