Convert CSP default src to tuple

This commit is contained in:
Erin Song 2024-08-15 11:25:22 -07:00
parent 5cd5cd645a
commit 34c9cd2761
No known key found for this signature in database

View file

@ -357,9 +357,9 @@ CSP_FORM_ACTION = allowed_sources
# strict CSP by allowing scripts to run from their domain
# and inline with a nonce, as well as allowing connections back to their domain.
# Note: If needed, we can embed chart.js instead of using the CDN
CSP_DEFAULT_SRC = [
CSP_DEFAULT_SRC = (
"'self'",
]
)
CSP_STYLE_SRC = ["'self'", "https://www.ssa.gov", "'unsafe-inline'"]
CSP_SCRIPT_SRC_ELEM = [
"'self'",