Select to view content in your preferred language

Javascript API 4.1 and Proxy not passing through

855
1
09-27-2016 08:23 AM
KeithAnderson
Occasional Contributor

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

Tags (4)
0 Kudos
1 Reply
DonKang
Regular Contributor

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

0 Kudos