Update src/registrar/config/settings.py

allowed_sources was not a tuple: https://django-csp.readthedocs.io/en/latest/configuration.html

Co-authored-by: Neil MartinsenBurrell <neil.martinsen-burrell@gsa.gov>
This commit is contained in:
zandercymatics 2023-08-15 07:26:34 -06:00 committed by GitHub
parent ea94831ab4
commit 94ab136058
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -285,7 +285,7 @@ SERVER_EMAIL = "root@get.gov"
# Content-Security-Policy configuration
# this can be restrictive because we have few external scripts
allowed_sources = ("'self'")
allowed_sources = ("'self'",)
CSP_DEFAULT_SRC = allowed_sources
# Most things fall back to default-src, but these two do not and should be
# explicitly set