From 6d398f730150d2943d392534a488de248507dd59 Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Thu, 10 Apr 2025 16:13:34 -0700 Subject: [PATCH] test --- tests/app/main/views/test_headers.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/app/main/views/test_headers.py b/tests/app/main/views/test_headers.py index e31b12220..7f72838db 100644 --- a/tests/app/main/views/test_headers.py +++ b/tests/app/main/views/test_headers.py @@ -20,14 +20,14 @@ 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 https:\/\/www\.google-analytics\." - r"com https:\/\/dap\.digitalgov\." - r"gov 'nonce-.*';", + r"com https:\/\/www\.google-analytics\.com https:\/\/dap\.digitalgov\.gov " + r"https:\/\/cdn\.socket\.io", csp, ) + assert search(r"'nonce-[^']+';", csp) assert search( - r"connect-src 'self' https:\/\/gov-bam.nr-data\.net https:\/\/www\.google-analytics\." - r"com;", + r"connect-src 'self' https:\/\/gov-bam\.nr-data\.net https:\/\/www\.google-analytics\." + r"com http:\/\/localhost:6011 ws:\/\/localhost:6011;", csp, ) assert search(r"style-src 'self' static\.example\.com 'nonce-.*';", csp)