I am trying to implement Matomo in a web application using the Matomo Cloud Platform. I am using the following plugin: GitHub - matomo-org/matomo-nodejs-tracker: A Node.js wrapper for the Matomo (Piwik) tracking HTTP API .
Every time i send a request to Matomo, i get an error message saying it has Cross-Domain issues:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:7001' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Problem is, i can’t find any documentation or forum post on how to set this up on the cloud platform. I already tried adding url’s to my website (the definition in matomo), but this doesn’t seem to resolve the issue.
Anyone that can help me out here?