AnsweredAssumed Answered

I want to plot a route between two points. I followed the sample code given for Javascript 3.18, The routes are being displayed for US only. When I try to plot route in India I get the following error.  " No 'Access-Control-Allow-Origin' header is present

Question asked by sanoop_grayfos on Nov 21, 2016
Latest reply on May 24, 2018 by rscheitlin

I am using the following url to generate route task . https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/NAServer/Route

 

This is the sample URL, I have tried this URL also  https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World

 

I am getting the same error with both URL. The code that I am following is same as the one mentioned in the sample codes.

 

https://developers.arcgis.com/javascript/3/jssamples/routetask_find_route.html

 

Please let me know what am I doing wrong.

Outcomes