mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-09 03:37:37 +02:00
Added more CSP urls for bluesky
This commit is contained in:
@@ -25,7 +25,7 @@ class TestCspConfigurationConsistency(unittest.TestCase):
|
||||
Accept entries that are:
|
||||
- Jinja expressions (contain '{{' and '}}')
|
||||
- Data or Blob URIs (start with 'data:' or 'blob:')
|
||||
- HTTP/HTTPS URLs
|
||||
- HTTP/HTTPS/WS/WSS URLs
|
||||
"""
|
||||
if '{{' in entry and '}}' in entry:
|
||||
return True
|
||||
@@ -34,7 +34,7 @@ class TestCspConfigurationConsistency(unittest.TestCase):
|
||||
if entry == '*':
|
||||
return True
|
||||
parsed = urlparse(entry)
|
||||
return parsed.scheme in ('http', 'https') and bool(parsed.netloc)
|
||||
return parsed.scheme in ('http', 'https','ws', 'wss') and bool(parsed.netloc)
|
||||
|
||||
def test_csp_configuration_structure(self):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user