Hello everyone,
We have a cached map service, whenever I try to add it to the map using ArcGIS JS API v 3.x "ArcGISTiledMapServiceLayer" it works fine.
But whenever I try to add it to the map, using ArcGIS JS API v 4.x "TileLayer" I get this error
"Access to fetch at 'Service URL' from origin 'null' 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."
Could anyone please assist me with that.
Thanks in advance.
Kind regards,
Abdelrahman.