Page MenuHomePhabricator

D19158.diff
No OneTemporary

D19158.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
Sun, Mar 16, 4:48 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7386927
Default Alt Text
D19158.diff (476 B)

Event Timeline