Skip to content

Commit

Permalink
Merge pull request #3872 from kobotoolbox/csp-maps
Browse files Browse the repository at this point in the history
Default CSP img src should include domains used for mapping
  • Loading branch information
noliveleger committed Jun 15, 2022
2 parents ec340ca + 52b2428 commit e482325
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kobo/settings/base.py
Expand Up @@ -526,7 +526,12 @@ def __init__(self, *args, **kwargs):
CSP_SCRIPT_SRC = CSP_DEFAULT_SRC + ["'unsafe-inline'"]
CSP_STYLE_SRC = CSP_DEFAULT_SRC + ["'unsafe-inline'", '*.bootstrapcdn.com']
CSP_FONT_SRC = CSP_DEFAULT_SRC + ['*.bootstrapcdn.com']
CSP_IMG_SRC = CSP_DEFAULT_SRC + ['data:']
CSP_IMG_SRC = CSP_DEFAULT_SRC + [
'data:',
'https://*.openstreetmap.org',
'https://*.opentopomap.org',
'https://*.arcgisonline.com'
]

if GOOGLE_ANALYTICS_TOKEN:
google_domain = '*.google-analytics.com'
Expand Down

0 comments on commit e482325

Please sign in to comment.