XMLHttpRequest error


I keep getting this error in my debugger.

access to XMLHttpRequest at ‘https://**.ca-sikring.dk/anonymize/data?v=2&event_name=page_view’ from origin ‘https://ca-sikring.dk’ has been blocked by CORS policy: The value of the ‘Access-Control-Allow-Origin’ header in the response must not be the wildcard ‘*’ when the request’s credentials mode is ‘include’. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

I have searched on the topic both google and here in the community but can’t finde a solution to the problem.

Any idea what’s going on?

Also getting this post issue:
POST https://**.ca-sikring.dk/anonymize/data?v=2&event_name=page_view net::ERR_FAILED 200

I thing they coming out of the same problem.

Thanks Christian

Did you solve this? I am seeing the exact same issue when using anonymize.


Anonymizer desired to work with UA and GA4 clients/tags.

Look like you casikring use Data Tag/Data Client for sending this request.

Data Tag will not work with the Anonymizer power-up properly.

With Data Tag, you have full control of what data is sent to the server, and that’s why you don’t need an anonymizer power up for Data tag.

Thanks Denis!

After changing the Server URL in my GTM web container the error is gone :slight_smile:

-Bedst Regards Christian