AnsweredAssumed Answered

Facing errors while requesting for routing service

Question asked by sanketparcgis on Nov 23, 2016
Latest reply on Nov 24, 2016 by rscheitlin

I'm using the sample code for Routing task to check before I buy. I have set up the proxy server and I'm giving some hardcoded latitude - longitude pairs in the code instead of clicking on the map.

I am able to see the routes for 11 points successfully but if i input more than 11 points, I am facing the following errors:

 

Response for preflight has invalid HTTP status code 403

Reason: CORS header 'Access-Control-Allow-Origin' missing

 

And  How do I use CORS in the code?

routing services javascript app

Outcomes