Skip to content

Commit 98773c1

Browse files
committed
Set X-Content-Options: nosniff on all handlers
for XSSI protections of non-script content
1 parent d17caf9 commit 98773c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

notebook/base/handlers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def content_security_policy(self):
8282

8383
def set_default_headers(self):
8484
headers = {}
85+
headers["X-Content-Type-Options"] = "nosniff"
8586
headers.update(self.settings.get('headers', {}))
8687

8788
headers["Content-Security-Policy"] = self.content_security_policy

0 commit comments

Comments
 (0)