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?
Vera,
You should use a Proxy for authenticating secured services in your app.