Skip to content

Commit

Permalink
Fix undefined CSP_CONNECT_SRC
Browse files Browse the repository at this point in the history
  • Loading branch information
jnm committed Jul 15, 2022
1 parent 98c53be commit 7e3fd63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions onadata/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ def skip_suspicious_operations(record):
if env.bool("ENABLE_CSP", False):
MIDDLEWARE.append('csp.middleware.CSPMiddleware')
CSP_DEFAULT_SRC = env.list('CSP_EXTRA_DEFAULT_SRC', str, []) + ["'self'"]
CSP_CONNECT_SRC = CSP_DEFAULT_SRC
CSP_SCRIPT_SRC = CSP_DEFAULT_SRC + ["'unsafe-inline'"]
CSP_STYLE_SRC = CSP_DEFAULT_SRC + ["'unsafe-inline'"]
CSP_IMG_SRC = CSP_DEFAULT_SRC + ['data:']
Expand Down

0 comments on commit 7e3fd63

Please sign in to comment.