CORS error with Google tag manager

Hi,
I have hosted an amp site. Now trying to enable Google tag manager.
When I nclude the tag manager scripts. I am getting the "

Blockquote
Access to fetch at ‘https://www.googletagmanager.com/amp.json?id=GTM-P8KJ4L5&gtm.url=https%3A%2F%2Fcuzorlabs.com%2F&__amp_source_origin=https%3A%2F%2Fcuzorlabs.com’ from origin ‘https://cuzorlabs.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled

error. After going through the forum I included netlify.toml at root.("Same folder where index.html is present)
Here is the file content
#The following redirect is intended for use with most SPAs that handle
#routing internally.
[[redirects]]
from = “/*”
to = “/index.html”
status = 200

[[headers]]
#Define which paths this specific [[headers]] block will cover.
for = “/"
[headers.values]
Access-Control-Allow-Origin = "

But still i continue to get the sam error. Please let me know whether netlify.toml file is right

Hi Sachin,

I think the message is about the missing header on google’s side, not ours, so nothing in your headers definition can help change what google sees.

But I also can’t believe google is blocking on CORS for this purpose if you’re following their instructions on using that resource.

Perhaps one of the recommendations in this stack overflow thread would help you out? https://stackoverflow.com/questions/46839959/google-analytics-tracking-code-giving-cors-error

Our CDN doesn’t “add” anything like mentioned in the first response, but since you did not specify how you are calling it exactly, maybe you have that in there?