Set X-Content-Options: nosniff on all handlers

for XSSI protections of non-script content
pull/4468/head
Min RK 7 years ago
parent d17caf92c0
commit 98773c1a8a

@ -82,6 +82,7 @@ class AuthenticatedHandler(web.RequestHandler):
def set_default_headers(self):
headers = {}
headers["X-Content-Type-Options"] = "nosniff"
headers.update(self.settings.get('headers', {}))
headers["Content-Security-Policy"] = self.content_security_policy

Loading…
Cancel
Save