AnsweredAssumed Answered

Javascript API 4.1 and Proxy not passing through

Question asked by KeitherJ on Sep 27, 2016
Latest reply on Jun 8, 2018 by kangdon

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 = [];

Outcomes