mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 19:03:30 -05:00
Update unit test
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user