mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +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)
|
||||
|
||||
|
Reference in New Issue
Block a user