How can i pass the token to Routetask

2682
1
08-20-2014 12:16 AM
ChiranjeeviGK
New Contributor III

When i try to solve the path using RouteTask it says

dojo.io.script error

Error {code: 499, message: "Token Required", details: Array[0], log: true, httpCode: 499…}

How can pass the token to RouteTask?
i am getting token as in the ArcGIS REST API
is any other way to do this?
Tags (2)
0 Kudos
1 Reply
OwenEarley
Occasional Contributor III

Using the REST API the token is added to the request URL. However, in the JS API the RouteTask and RouteParameters do not have a property for assigning a token to the request.

Check out the Token based authentication section on the secure services help section. You may need to use the Identity Manager so check out the samples.

0 Kudos