From f5d299abfc57f1eb3cdf53445ee24ef14aca6dd8 Mon Sep 17 00:00:00 2001 From: Rupanshi Jain Date: Fri, 1 Sep 2023 13:24:51 +0530 Subject: [PATCH] fix: remove X-Xss-Protection header check as it is outdated Signed-off-by: Rupanshi Jain --- tests/test_security.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_security.py b/tests/test_security.py index f115b1d..dd4fba1 100644 --- a/tests/test_security.py +++ b/tests/test_security.py @@ -9,7 +9,7 @@ class SecurityTest(TestCase): def test_headers(self): resp = self.client.get("/portal/") self.assertEqual(resp["X-Frame-Options"], "DENY") - self.assertEqual(resp["X-Xss-Protection"], "1; mode=block") + # self.assertEqual(resp["X-Xss-Protection"], "1; mode=block") self.assertEqual(resp["X-Content-Type-Options"], "nosniff") self.assertIn(resp["Referrer-Policy"], ["no-referrer", "same-origin"])