FeatureLayer link

53
1
08-19-2019 11:37 PM
Highlighted
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?

Reply
0 Kudos
1 Reply
Highlighted
MVP Esteemed Contributor

Vera,

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

Reply
0 Kudos