The snippet below works with the 4.0 JavaScript API but not at 4.1.
The response object prompts for authentication where it used to pass authentication through.
Any ideas are welcome.
restUrl = "https://xxx.server.org/arcgis/rest/services/CoolMap/";
if (queryObj.query && queryObj.query["city"]) {
urlUtils.addProxyRule({
proxyUrl: "https://xxx.server.org/proxy-coolmap/",
urlPrefix: restUrl
});
esriRequest(restUrl, {
query: {
f: "json"
},
cacheBust: true
}
).then(function (response) {
var services = [];
Keith
I know this is kinda old post..
Were you able to figure out your issue?
I am having similar issue where I am trying to authenticate secured service and I can't get it to work.
I am using Windows Authentication option for my server.
thanks
Don