From f45f3b7e8d476f109e09e12d07a5558543248ea2 Mon Sep 17 00:00:00 2001 From: hugocasa Date: Mon, 31 Aug 2026 16:18:42 +0200 Subject: [PATCH] fix: hide the origin control for every static target, not just websites --- .../triggers/http/RouteEditorInner.svelte | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/frontend/src/lib/components/triggers/http/RouteEditorInner.svelte b/frontend/src/lib/components/triggers/http/RouteEditorInner.svelte index eb046f380e..2170a2b501 100644 --- a/frontend/src/lib/components/triggers/http/RouteEditorInner.svelte +++ b/frontend/src/lib/components/triggers/http/RouteEditorInner.svelte @@ -796,7 +796,11 @@ { name: 'Authentication', active: authentication_method !== 'none' }, { name: 'CORS', - active: isOriginRestricted(allowed_origins, instanceDefaultOrigins) + // Not shown for a static route: the backend exempts those from + // the allowlist, so reporting a restriction would be a lie. + active: + !static_asset_config && + isOriginRestricted(allowed_origins, instanceDefaultOrigins) } ]} /> @@ -1001,13 +1005,20 @@ {testingBadge} /> - + + {#if !static_asset_config} + + {/if} {:else}