Today I have error in previously working coe. Api version is 4.9
Access to XMLHttpRequest at 'https://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/project' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Solved! Go to Solution.
Fixed the issue by discovering new url for GeometryServer
"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer"
Fixed the issue by discovering new url for GeometryServer
"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer"
Don't forget to mark the correct answer to your post (even if it's your own answer )