HTTP authorization headers
ArcGIS services are secured using ArcGIS token-based authentication. The client software must be able to obtain and use the token.
When building custom ArcGIS client applications that use GET requests to access web services secured using ArcGIS token-based authentication, it is recommended that the token be sent in the X-Esri-Authorization
header instead of a query parameter. This prevents intermediaries on the network, such as proxies, gateways or load-balancers from being able to obtain the token.
The general steps to use an authorization header are:
- Use a valid username and password to get an access token.
- Set the server host domain.
- Set the authorization header and bearer:
X-Esri-Authorization
(web-tier)Authorization
(not web-tier)