You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting the following error with MapTiler: Cross-Origin Read Blocking (CORB) blocked cross-origin response https://api.maptiler.com/maps/0d252733-b45d-492f-9a54-e8cf728d98d5/?key=key with MIME type text/html.
function mapTiler(x, y, z, dpr) {
return `https://api.maptiler.com/maps/0d252733-b45d-492f-9a54-e8cf728d98d5/?key=key#${z}/${x}/${y}${
dpr >= 2 ? "@2x" : ""
}.png`;
}
Does your key have access to the specified map? Pick a map yourself at https://cloud.maptiler.com/maps/ or just replace the string
By default, your key is not going to be locked to any domain ... so it will run this way
The owner of the key can protect it - limit the key usage for his own domain or app user-agent - so others don't consume his requests. See: https://documentation.maptiler.com/hc/en-us/articles/360020806037-How-to-protect-your-map-key - if he does set the protection you get CORS / CORB error - but if you have a look on that request in Google Network console - you will see the error message properly on that request - very probably it means you are not allowed to use this key from your domain on the map of somebody else.
BTW where is this map with id 0d252733-b45d-492f-9a54-e8cf728d98d5 visible?
If it is a code example - you better replace it with streets map-id ...
Getting the following error with MapTiler:
Cross-Origin Read Blocking (CORB) blocked cross-origin response https://api.maptiler.com/maps/0d252733-b45d-492f-9a54-e8cf728d98d5/?key=key with MIME type text/html.
How do I fix this?
The text was updated successfully, but these errors were encountered: