Added more CSP urls for bluesky

This commit is contained in:
2025-09-03 17:31:29 +02:00
parent 24b6647bfb
commit e2993d2912
2 changed files with 12 additions and 12 deletions

View File

@@ -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):
"""