From 7dd7aad8f4a48ba5aae88c0c7d3f190898165eea Mon Sep 17 00:00:00 2001 From: Dmitri Pavlutin Date: Mon, 6 Feb 2023 13:13:27 +0100 Subject: [PATCH] fix(ms-word-addin): allow cors for matomo --- apps/ms-word-addin/src/services/stats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ms-word-addin/src/services/stats.ts b/apps/ms-word-addin/src/services/stats.ts index 197de524..44a371e5 100644 --- a/apps/ms-word-addin/src/services/stats.ts +++ b/apps/ms-word-addin/src/services/stats.ts @@ -4,7 +4,7 @@ const trackAdaptEvent = (isSelection: boolean) => { let url = `${config.matomoURL}/.php?idsite=2&action_name=adaptSelection&rec=1&ua=unknown&uadata={}` url += isSelection ? '&action_name=adaptSelection' : '&action_name=adaptDocument' - fetch(url).catch(console.error) + fetch(url, { mode: 'cors' }).catch(console.error) } export { trackAdaptEvent }