Skip to content

Commit

Permalink
Merge pull request #119 from ContentSquare/fix/allow-cors
Browse files Browse the repository at this point in the history
fix(ms-word-addin): allow cors for matomo
  • Loading branch information
panzerdp authored Feb 6, 2023
2 parents a6ea52b + 7dd7aad commit e3d1681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/ms-word-addin/src/services/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

0 comments on commit e3d1681

Please sign in to comment.