diff options
author | James Moger <james.moger@gitblit.com> | 2014-09-05 15:32:04 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-09-05 15:32:04 -0400 |
commit | 71647a6587d4a1b365e382590e535a3915255cac (patch) | |
tree | d23be99e7447d54803e90f15d0429f69eb7fbd91 /src/main/java/com/gitblit/wicket | |
parent | fcfcd84f3f4f37efb1b158670d4e4e9af4c90bc5 (diff) | |
download | gitblit-71647a6587d4a1b365e382590e535a3915255cac.tar.gz gitblit-71647a6587d4a1b365e382590e535a3915255cac.zip |
Specify response header X-Frame-Options SAMEORIGIN for generated pages
Diffstat (limited to 'src/main/java/com/gitblit/wicket')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/BasePage.java | 3 |
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");
}
/**
|