Page MenuHomePhabricator

framedeny.patch

Authored By
bzimport
Nov 22 2014, 1:05 AM
Size
421 B
Referenced Files
None
Subscribers
None

framedeny.patch

--- a/includes/api/ApiFormatBase.php
+++ b/includes/api/ApiFormatBase.php
@@ -143,6 +143,9 @@ abstract class ApiFormatBase extends ApiBase {
$this->getMain()->getRequest()->response()->header( "Content-Type: $mime; charset=utf-8" );
+ //Set X-Frame-Options for all API calls (bug 39180)
+ $this->getMain()->getRequest()->response()->header( "X-Frame-Options: DENY" );
+
if ( $isHtml ) {
?>
<!DOCTYPE HTML>

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9555
Default Alt Text
framedeny.patch (421 B)

Event Timeline