I’m using https://hub.docker.com/_/matomo/ and it looks like matomo.js is served as static file without handling cors headers.
To fix (hack) this I had to:
- Enable Apache Header mod:
a2enmod headers && service apache2 restart - Add .htaccess with:
<FilesMatch "(matomo\.js)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
Unfortunately this not handle whitelist from matomo admin configuration