diff --git a/src/aphront/response/AphrontResponse.php b/src/aphront/response/AphrontResponse.php index ed3d6d3435..05d230aa71 100644 --- a/src/aphront/response/AphrontResponse.php +++ b/src/aphront/response/AphrontResponse.php @@ -154,6 +154,9 @@ abstract class AphrontResponse extends Phobject { // download URI instead of submitting a form to it. $csp[] = "form-action 'self'"; + // Block use of "" to change the origin of relative URIs on the page. + $csp[] = "base-uri 'none'"; + $csp = implode('; ', $csp); return $csp;