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.
Fixed the issue by discovering new url for GeometryServer
"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer"
config | API Reference | ArcGIS API for JavaScript 4.10
Don't forget to mark the correct answer to your post (even if it's your own answer )
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.