Skip to content

Commit

Permalink
Remove the X-XSS code and fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
petechd committed Jan 13, 2025
1 parent 565a843 commit e5ee9eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ def setup_secure_headers(application):
strict_transport_security=True,
strict_transport_security_max_age=31536000,
frame_options="DENY",
x_xss_protection=True,
)


Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_app_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ def test_enforces_secure_headers(self):
headers["Strict-Transport-Security"],
)
self.assertEqual("DENY", headers["X-Frame-Options"])
self.assertEqual("1; mode=block", headers["X-Xss-Protection"])
self.assertEqual("nosniff", headers["X-Content-Type-Options"])
self.assertNotIn("X-XSS-Protection", headers)

def test_csp_policy_headers(self):
cdn_url = "https://cdn.test.domain"
Expand Down

0 comments on commit e5ee9eb

Please sign in to comment.