Request type related errors on console

Hi

On my website on some product page in the console I have these errors:
Access to XMLHttpRequest at ‘https://gtm.domain.com/data?v=1&event_name=page_view’ from origin ‘https://www.domain.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Access to XMLHttpRequest at ‘https://gtm.domain.com/data?v=1&event_name=view_item’ from origin ‘https://www.domain.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

XHR failed loading: POST “https://gtm.domain.com/data?v=1&event_name=page_view”.
XHR failed loading: POST “https://gtm.domain.com/data?v=1&event_name=view_item”.

On the Data Tag the Request Type is set on “auto”, those errors disappear when I change it to POST or GET, any of them make it disappear. So, please, how should I set this ?

You should definitely add a permission in your CORS settings so that these requests are not blocked.

@Freddy need to see actual examples, please share if possible (you can DM me if you don’t want to expose). Otherwise it’s all speculative

thanks. domain = runayaq

Yes, you definitely need to make changes to your CORS settings so that they don’t block your requests to sGTM subdomain