From 8e25fecc27648d6b845e7b92e5b0138f7aa0cdcc Mon Sep 17 00:00:00 2001 From: Michael Schuster Date: Tue, 30 Apr 2024 17:30:26 +0200 Subject: [PATCH] Fix frontend analytics calls (#2653) Co-authored-by: Andrei Vishniakov <31008759+avishniakov@users.noreply.github.com> --- src/zenml/constants.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/zenml/constants.py b/src/zenml/constants.py index 426a11aa03d..35af0a9b54f 100644 --- a/src/zenml/constants.py +++ b/src/zenml/constants.py @@ -248,7 +248,11 @@ def handle_int_env_var(var: str, default: int = 0) -> int: DEFAULT_ZENML_SERVER_SECURE_HEADERS_XXP = "0" DEFAULT_ZENML_SERVER_SECURE_HEADERS_CONTENT = "nosniff" _csp_script_src_urls = ["https://widgets-v3.featureos.app"] -_csp_connect_src_urls = ["https://sdkdocs.zenml.io", "https://hubapi.zenml.io"] +_csp_connect_src_urls = [ + "https://sdkdocs.zenml.io", + "https://hubapi.zenml.io", + "https://analytics.zenml.io", +] _csp_img_src_urls = [ "https://public-flavor-logos.s3.eu-central-1.amazonaws.com", "https://avatar.vercel.sh",