Last active
December 25, 2015 01:09
-
-
Save apfister/6892749 to your computer and use it in GitHub Desktop.
request for trigger/list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esri.request({ | |
url: 'https://geotrigger.arcgis.com/trigger/list', | |
headers: { | |
'Authorization' : 'Bearer <my super duper valid Access Token>' | |
} | |
}).then( | |
function (response) { | |
console.log(response); | |
} | |
); |
Missing word in the authorization header:
Authorization: Bearer XXXXXX
it throws the same error even with "Bearer" added. i also noticed that the Esri JS API is forcing the request through my proxy page. not sure if that matters.
If it's going through your proxy page, then your proxy is probably not adding the authorization header.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this trigger/list request will fail with an invalid header value saying "OAuth 2.0 access_token is required"