Add "X-Frame-Options: DENY" header to all pages. refs #1455

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2015-02-09 02:27:32 +00:00 committed by Jean-Paul Calderone
parent 890360c8ea
commit 718fa4493c

View File

@ -45,6 +45,9 @@ class MyRequest(appserver.NevowRequest):
self.client = self.channel.transport.getPeer()
self.host = self.channel.transport.getHost()
# Adding security headers. These will be sent for *all* HTTP requests.
self.responseHeaders.setRawHeaders("X-Frame-Options", ["DENY"])
# Argument processing.
## The original twisted.web.http.Request.requestReceived code parsed the