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 ‘https://www.googletagmanager.com/amp.json?id=GTM-P8KJ4L5>m.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
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