From fff81870e592210dd72698ca254aee5280e797c6 Mon Sep 17 00:00:00 2001 From: alexjanousekGSA Date: Tue, 8 Apr 2025 13:03:01 -0400 Subject: [PATCH] Fixed header --- 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 e31b12220..ec7d3d6a7 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"default-src 'self' static\.example\.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(