FeatureLayer link

254
1
08-19-2019 11:37 PM
VeraBeilinson
New Contributor

Hello! I was trying to link a FeatureLayer like so:

var testLayer = new FeatureLayer({
url: "https://services9.arcgis.com/______/FeatureServer/0"
});

map.add(testLayer );
});

 

And the link I using Service URL, and stopping at /0 which is the service endpoint. However this link does not work and the link requests an access token, and when I include that in the url it still does not work. What is the solution to this problem?

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Vera,

   You should use a Proxy for authenticating secured services in your app.

0 Kudos