Feature service token issues with Ajax

2172
2
08-21-2014 02:00 PM
maximcouton
New Contributor III

Hi,

I have published a Feature Service in arcgis online ,

I order to access it , It requires a Token .  Using the browser for the first time the pop asks me tto enter atht token, all thing goes fine.

Using ajax I have no idea how to use that token .

Thanks for help.

0 Kudos
2 Replies
maximcouton
New Contributor III

I get the error :

  1. message: "Token Required"
0 Kudos
OwenEarley
Occasional Contributor III

If you are using the ESRI JS API - 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.

If you are using ajax with the REST API the token should be added to the request URL. See the ArcGIS REST API‌ page for more information.

0 Kudos