Error XMLHttprequest

Can someone help me with the following error? I’ve already tried lots of things but can’t seem to find the solution.

Acess to XMLHttpRequest at ‘https://hkdogsqa.eua.stape.net/events’ from origin ‘https://www.dtc-lease.nl’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Regards,
Mats

Hi Mats,

This is an issue on your domain side, there is nothing we can help with. Your Cross-Origin Resource Sharing policy does not allow for request to the stape domain you’re trying. You should address this to your developers.

p.s. also, you should ideally be using a custom sub-domain, not the one provided by Stape

Hi Dan,

Thanks for the quick respond!
In side to that, I’m using a subdomein. You think I have the configuration wrong?

your initial query has the stape sub-domain, not the custom one. I believe you didn’t choose the correct one when generating a custom loader. So I suggest you do that first, that way there might not be any CORS issues

Hi Dan,

I’m using following code. Can’t figure out why it’s pointing to the other domain.
Any idea’s?

Hi Mats,

Upon further review, what’s failing if FB CAPI Gateway, not your GTM container, this URL https://hkdogsqa.eua.stape.net/events is connected to this product: Implement Meta Conversion API Gateway with no fuss - Stape

As such you can either:

a) disable it if you don’t use it

b) address the CORS issue to your devs so that it does work

Regards,

Dan

Hi Dan,

It worked. Many thanks!