Solved csp bugs

This commit is contained in:
2025-06-03 17:49:55 +02:00
parent ebd74db3c4
commit 6d857663fb
6 changed files with 55 additions and 58 deletions

View File

@@ -117,7 +117,7 @@ class FilterModule(object):
# ReCaptcha integration: allow loading scripts from Google if feature enabled
if self.is_feature_enabled(applications, 'recaptcha', application_id):
if directive == 'script-src-elem':
if directive in ['script-src-elem',"frame-src"]:
tokens.append('https://www.gstatic.com')
tokens.append('https://www.google.com')