966 - Added 2 urls to the CSP configuration + adjusted the test

This commit is contained in:
Jonathan Bobel
2023-12-12 16:45:21 -05:00
parent ec14996525
commit 13ed67b18b
3 changed files with 9 additions and 9 deletions

View File

@@ -18,7 +18,9 @@ def test_owasp_useful_headers_set(
assert search(
r"script-src 'self' static\.example\.com 'unsafe-eval' https:\/\/js-agent\.new"
r"relic\.com https:\/\/gov-bam\.nr-data\.net https:\/\/www\.googletagmanager\."
r"com 'nonce-.*';",
r"com https:\/\/www\.google-analytics\."
r"com https:\/\/dap\.digitalgov\."
r"gov 'nonce-.*';",
csp,
)
assert search(r"connect-src 'self' https:\/\/gov-bam.nr-data\.net;", csp)