From b8cf2db68e832cff34020ead2075bd2f48d7c37e Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Tue, 17 Feb 2026 00:46:09 +0100 Subject: [PATCH] disable traceid gen in unsecure context (#11349) --- src/frontend/src/App.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index 96e50c813e..e0d205ca08 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -36,6 +36,11 @@ export const queryClient = new QueryClient({ } }); export function setTraceId() { + // check if we are in a secure context (https) - if not use of crypto is not allowed + if (!window.isSecureContext) { + return ''; + } + const runID = crypto.randomUUID().replace(/-/g, ''); const traceid = `00-${runID}-${frontendID}-01`; api.defaults.headers['traceparent'] = traceid;