This commit is contained in:
Gabriel Augendre 2021-03-21 16:15:52 +01:00
parent 58b40710f0
commit 5897425ed3

View file

@ -219,7 +219,7 @@ SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
# CSP
CSP_DEFAULT_SRC = ("'none'",)
https_goatcounter_domain = "https://" + GOATCOUNTER_DOMAIN
https_goatcounter_domain = "https://" + str(GOATCOUNTER_DOMAIN)
CSP_IMG_SRC = ("'self'", https_goatcounter_domain)
CSP_SCRIPT_SRC = ("'self'",)
CSP_CONNECT_SRC = ("'self'", https_goatcounter_domain)