mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Little tweaks
This commit is contained in:
@@ -28,6 +28,8 @@ class TestCspConfigurationConsistency(unittest.TestCase):
|
||||
return True
|
||||
if entry.startswith(('data:', 'blob:')):
|
||||
return True
|
||||
if entry == '*':
|
||||
return True
|
||||
parsed = urlparse(entry)
|
||||
return parsed.scheme in ('http', 'https') and bool(parsed.netloc)
|
||||
|
||||
|
@@ -181,7 +181,7 @@ class TestCspFilters(unittest.TestCase):
|
||||
# Expect '*.domain-example.com' in the frame-ancestors directive
|
||||
self.assertRegex(
|
||||
header,
|
||||
r"frame-ancestors\s+'self'\s+\*\.domain-example\.com;"
|
||||
r"frame-ancestors\s+'self'\s+domain-example\.com;"
|
||||
)
|
||||
|
||||
# Now disable the feature and rebuild
|
||||
|
Reference in New Issue
Block a user