From 3e94e9d5f96195af3b71e1c9d2fff1f4f01a65de Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 17 Feb 2011 21:22:21 +0100 Subject: [PATCH] Support SameOrigin --- plugins/frames.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/plugins/frames.php b/plugins/frames.php index 086e05454..8cbebd9dc 100644 --- a/plugins/frames.php +++ b/plugins/frames.php @@ -1,14 +1,26 @@ sameOrigin = $sameOrigin; + } function headers() { + if ($this->sameOrigin) { + header("X-Frame-Options: SameOrigin"); + } header("X-XSS-Protection: 0"); + return true; } }