From e59ddfcae5781cf2b783e1133f97a7efb0f5b1f2 Mon Sep 17 00:00:00 2001 From: alexjanousekGSA Date: Thu, 10 Apr 2025 15:58:26 -0400 Subject: [PATCH] Update unit test --- tests/app/main/views/test_headers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/main/views/test_headers.py b/tests/app/main/views/test_headers.py index ec7d3d6a7..efa2d1c4e 100644 --- a/tests/app/main/views/test_headers.py +++ b/tests/app/main/views/test_headers.py @@ -14,7 +14,7 @@ def test_owasp_useful_headers_set( assert response.headers["X-Frame-Options"] == "deny" assert response.headers["X-Content-Type-Options"] == "nosniff" csp = response.headers["Content-Security-Policy"] - assert search(r"frame-src https://www.googletagmanager.com", csp) + assert search(r"frame-src.*https://www\.googletagmanager\.com", csp) assert search(r"frame-ancestors 'none';", csp) assert search(r"form-action 'self';", csp) assert search(