Skip to content

Commit

Permalink
Merge pull request #69 from dimagi/mk/add-talisman-to-example
Browse files Browse the repository at this point in the history
Add talisman to example file
  • Loading branch information
mkangia authored Oct 28, 2024
2 parents 172bb13 + d0a232f commit 6511b0c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions superset_config.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,36 @@ class CeleryConfig:
# CommCare Analytics extensions
FLASK_APP_MUTATOR = flask_app_mutator
CUSTOM_SECURITY_MANAGER = oauth.CommCareSecurityManager

TALISMAN_CONFIG = {
"content_security_policy": {
"base-uri": ["'self'"],
"default-src": ["'self'"],
"img-src": [
"'self'",
"blob:",
"data:",
"https://apachesuperset.gateway.scarf.sh",
"https://static.scarf.sh/",
"*",
],
"worker-src": ["'self'", "blob:"],
"connect-src": [
"'self'",
"https://api.mapbox.com",
"https://events.mapbox.com",
],
"object-src": "'none'",
"style-src": [
"'self'",
"'unsafe-inline'",
"https://fonts.googleapis.com",
],
"font-src": ["'self'", "https://fonts.gstatic.com"],
"script-src": ["'self'", "'unsafe-eval'"],
},
"content_security_policy_nonce_in": ["script-src"],
"force_https": False,
"session_cookie_secure": False,
}

0 comments on commit 6511b0c

Please sign in to comment.