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://xyz.server.org/arcgis/rest/services/CoolMap/";
if (queryObj.query && queryObj.query["city"]) {
urlUtils.addProxyRule({
proxyUrl: "https://xyz.server.org/proxy-coolmap/",
urlPrefix: restUrl
});
esriRequest(restUrl, {
query: {
f: "json"
},
cacheBust: true
}
).then(function (response) {
var services = [];