Solved portfolio bug

This commit is contained in:
2025-05-20 00:39:31 +02:00
parent f748f9cef1
commit 865f3577d4
2 changed files with 2 additions and 2 deletions

View File

@@ -175,7 +175,7 @@ class TestCspFilters(unittest.TestCase):
# Ensure feature enabled and domain set
self.apps['app1']['features']['portfolio_iframe'] = True
# simulate a subdomain for the application
self.domains['app1'] = 'sub.domain-example.com'
self.domains['portfolio'] = ['domain-example.com']
header = self.filter.build_csp_header(self.apps, 'app1', self.domains, web_protocol='https')
# Expect '*.domain-example.com' in the frame-ancestors directive