Solved CSP bugs for echoserver

This commit is contained in:
2025-06-10 18:25:39 +02:00
parent 90e9e00205
commit 2541cc1c91
6 changed files with 11 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ class FilterModule(object):
):
domain = domains.get('portfolio')[0]
sld_tld = ".".join(domain.split(".")[-2:]) # yields "example.com"
tokens.append(f"{sld_tld}") # yields "*.example.com"
tokens.append(f"{sld_tld}") # yields "*.example.com"
# whitelist
tokens += self.get_csp_whitelist(applications, application_id, directive)