aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla
diff options
context:
space:
mode:
Diffstat (limited to 'src/hydrilla')
-rw-r--r--src/hydrilla/proxy/policies/base.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/hydrilla/proxy/policies/base.py b/src/hydrilla/proxy/policies/base.py
index 1626b5c..95021cd 100644
--- a/src/hydrilla/proxy/policies/base.py
+++ b/src/hydrilla/proxy/policies/base.py
@@ -177,7 +177,12 @@ class Policy(ABC):
if (self.current_popup_settings.popup_enabled and
http_info.is_likely_a_page):
nonce_source = f"'nonce-{response_nonce()}'"
- directives = ('script-src', 'style-src', 'frame-src')
+ directives = (
+ 'script-src',
+ 'script-src-elem',
+ 'style-src',
+ 'frame-src'
+ )
return dict((directive, [nonce_source]) for directive in directives)
else:
return Map()