AnsweredAssumed Answered

Why is esri/request failing on Firefox, where as working on Chrome?

Question asked by surajhpatildev on Nov 9, 2016
Latest reply on Nov 9, 2016 by rscheitlin

I am trying to read the metadata of published FeatureService from ArcGIS server using esri/request AMD module.
Its working fine on chrome and is returning the list of metadata and layers to read from which i use later to add them on my map.
But surprisingly, the same is failing on Firefox. Here is the net panel screenshot for the request,

 

 

The code for request is simple, as following

 

var allLayerUrl = appConfig.ArcGISFeatureServiceUrl;
               var requestHandle = esriRequest({
                 "url": allLayerUrl,
                 "content": {
                   "f": "json"
                 },
                 "callbackParamName": "callback"
               });
          requestHandle.then(lang.hitch(this,function(resp){
               if(resp.layers){
                    resp.layers.forEach(function(layerInfo){
                         //Do something
                         });
                    }
                }),lang.hitch(this,function(err){
                     //Show error message
                }));

Outcomes