From 3f4cea474e488dfbe892e833deace49b4c8be513 Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Fri, 17 Apr 2026 16:05:23 +0300 Subject: Gate preconnect hints on profile=live via soupault widget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task 5 inserted the preconnect tags directly into templates/main.html, which caused them to ship on every profile — defeating the staging privacy posture (staging visitors' IPs would leak to Cookiebot and metrics.vyos.io during TLS handshake). Moves them to a new insert-preconnect-hints widget with profile = "live", matching the pattern used for the two GTM widgets and Step 5.2's original --profile live verification intent. Co-Authored-By: Claude Opus 4.7 --- soupault.toml | 10 ++++++++++ templates/main.html | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/soupault.toml b/soupault.toml index 801bb86..7c41812 100644 --- a/soupault.toml +++ b/soupault.toml @@ -71,6 +71,16 @@ height="0" width="0" style="display:none;visibility:hidden"> action = "prepend_child" profile = "live" +[widgets.insert-preconnect-hints] + widget = "insert_html" + html = """ + + +""" + selector = "head" + action = "append_child" + profile = "live" + # Inserts a scary warning banner in preview versions [widgets.insert-staging-warning] widget = "include" diff --git a/templates/main.html b/templates/main.html index b5ae50c..03659c2 100644 --- a/templates/main.html +++ b/templates/main.html @@ -45,16 +45,6 @@ rel="stylesheet" href="/main.css" /> - -