From 1ef99c060de33e877409f3dcc78748aee465a320 Mon Sep 17 00:00:00 2001 From: Arpit Jain Date: Tue, 16 Jun 2026 11:42:36 +0900 Subject: [PATCH] Inherit crossorigin on the injected web-vitals script On pages that set Cross-Origin-Embedder-Policy: require-corp, the DAP tag can carry a crossorigin attribute so its response satisfies the policy. The dynamically injected web-vitals script never received that attribute, so it was blocked from loading on such pages. Read the crossorigin value from the DAP script tag (#_fed_an_ua_tag) and apply it to the web-vitals script element when present. Regenerated the minified bundle with the project's terser config. Fixes #167 Signed-off-by: Arpit Jain --- Universal-Federated-Analytics-Min.js | 6 +++--- Universal-Federated-Analytics-Min.js.map | 2 +- Universal-Federated-Analytics.js | 7 +++++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Universal-Federated-Analytics-Min.js b/Universal-Federated-Analytics-Min.js index 8aaf4e8..778146b 100644 --- a/Universal-Federated-Analytics-Min.js +++ b/Universal-Federated-Analytics-Min.js @@ -9,9 +9,9 @@ for(t=0;t