CORS error with Google tag manager

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

Access to fetch at ‘’ from origin ‘’ 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.
from = “/*”
to = “/index.html”
status = 200

#Define which paths this specific [[headers]] block will cover.
for = “/"
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?

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?