Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15376252
D19158.id45894.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
476 B
Referenced Files
None
Subscribers
None
D19158.id45894.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
@@ -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
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 14, 2:29 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7386927
Default Alt Text
D19158.id45894.diff (476 B)
Attached To
Mode
D19158: Block use of "<base />" in the Content Security Policy
Attached
Detach File
Event Timeline
Log In to Comment