]> source.dussan.org Git - gitblit.git/commitdiff
Specify response header X-Frame-Options SAMEORIGIN for generated pages 66/166/1
authorJames Moger <james.moger@gitblit.com>
Fri, 5 Sep 2014 19:32:04 +0000 (15:32 -0400)
committerJames Moger <james.moger@gitblit.com>
Fri, 5 Sep 2014 19:32:04 +0000 (15:32 -0400)
src/main/java/com/gitblit/wicket/pages/BasePage.java

index 49710397d91512b77f666c305c879d5aa259ec94..b454b7a8725493ff4ed6fadf8a463ce5c2b850cf 100644 (file)
@@ -166,6 +166,9 @@ public abstract class BasePage extends SessionPage {
                        // use default Wicket caching behavior\r
                        super.setHeaders(response);\r
                }\r
+\r
+               // XRF vulnerability. issue-500 / ticket-166\r
+               response.setHeader("X-Frame-Options", "SAMEORIGIN");\r
        }\r
 \r
        /**\r