From dfae4dfc445b21fdd4d2051700ccdf16f6de925a Mon Sep 17 00:00:00 2001 From: Ben White Date: Thu, 12 Dec 2024 15:43:55 +0100 Subject: [PATCH] Updated remote config to include domain restrictions param --- posthog/models/remote_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/posthog/models/remote_config.py b/posthog/models/remote_config.py index 637ce7ff4566a..847cb02c02bce 100644 --- a/posthog/models/remote_config.py +++ b/posthog/models/remote_config.py @@ -166,6 +166,8 @@ def build_config(self): "urlBlocklist": team.session_recording_url_blocklist_config, "eventTriggers": team.session_recording_event_trigger_config, "scriptConfig": rrweb_script_config, + # Indicates there are domain restrictions - so the SDK can make one follow up call to check + "domainRestrictions": len(team.recording_domains or []) > 0, } if isinstance(team.session_replay_config, dict):