diff --git a/templates/partials/content_security_policy.html b/templates/partials/content_security_policy.html index cb2eb79b5..af00fac42 100644 --- a/templates/partials/content_security_policy.html +++ b/templates/partials/content_security_policy.html @@ -27,7 +27,7 @@ {%- if config.extra.analytics.service -%} {%- if config.extra.analytics.service == "goatcounter" -%} {%- set script_src = script_src ~ " gc.zgo.at" -%} - {%- set connect_src = connect_src ~ " gc.zgo.at" -%} + {%- set connect_src = connect_src ~ " " ~ config.extra.analytics.id ~ ".goatcounter.com/count" -%} {%- elif config.extra.analytics.service == "umami" -%} {%- set script_src = script_src ~ " analytics.eu.umami.is" -%} {%- set connect_src = connect_src ~ " *.umami.dev" ~ " analytics.eu.umami.is" -%}