mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-20 11:38:52 +00:00
Add "X-Frame-Options: DENY" header to all pages. refs #1455
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
890360c8ea
commit
718fa4493c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user