summaryrefslogtreecommitdiffstats
path: root/src/main/java/com
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-09-05 15:32:04 -0400
committerJames Moger <james.moger@gitblit.com>2014-09-05 15:32:04 -0400
commit71647a6587d4a1b365e382590e535a3915255cac (patch)
treed23be99e7447d54803e90f15d0429f69eb7fbd91 /src/main/java/com
parentfcfcd84f3f4f37efb1b158670d4e4e9af4c90bc5 (diff)
downloadgitblit-71647a6587d4a1b365e382590e535a3915255cac.tar.gz
gitblit-71647a6587d4a1b365e382590e535a3915255cac.zip
Specify response header X-Frame-Options SAMEORIGIN for generated pages
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/BasePage.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/BasePage.java b/src/main/java/com/gitblit/wicket/pages/BasePage.java
index 49710397..b454b7a8 100644
--- a/src/main/java/com/gitblit/wicket/pages/BasePage.java
+++ b/src/main/java/com/gitblit/wicket/pages/BasePage.java
@@ -166,6 +166,9 @@ public abstract class BasePage extends SessionPage {
// use default Wicket caching behavior
super.setHeaders(response);
}
+
+ // XRF vulnerability. issue-500 / ticket-166
+ response.setHeader("X-Frame-Options", "SAMEORIGIN");
}
/**