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}