jojoseph

Esri leaflet callback returns http not https

Discussion created by jojoseph on Jun 7, 2017
Latest reply on Jun 19, 2017 by jojoseph

* Browser and version:

Chrome: Version 58.0.3029.110 (64-bit)

* Version of Leaflet (`L.version`):

0.7.7

* Version of esri Leaflet (`L.esri.VERSION`):

1.0.5

Steps to reproduce the error:
url: https://argis.ualr.edu/DCFS/index.html

1. load the url, at first it is secured, then it becomes unsecured? when the map is loaded
2. check out the console

What happens is [X].

When I load a layer from my server 'https' the proxy returns the following, the window._EsriLeafletCallbacks.c0 returns 'http'

 

```

// 20170607154733
// https://argis.ualr.edu/DotNet/proxy.ashx?https://argis.ualr.edu/arcgis/rest/services/DF/MapServer/export?bbox=-10865064.948568093%2C3830412.361426751%2C-9690992.194107786%2C4426009.685824844&size=1920%2C974&dpi=96&format=png24&transparent=true&bboxSR=3857&imageSR=3857&layers=show%3A8&callback=window._EsriLeafletCallbacks.c0&f=json

window._EsriLeafletCallbacks.c0({
"href": "http://argis.ualr.edu/arcgis/rest/directories/arcgisoutput/DF_MapServer/_ags_map1fcce4121c054f0880809202d811e1d5.png",
"width": 1920,
"height": 974,
"extent": {
"xmin": -10865064.948568091,
"ymin": 3830412.3614267511,
"xmax": -9690992.194107784,
"ymax": 4426009.6858248441,
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
}
},
"scale": 2311162.2171551138
});

```

 

Apologize couldn't figure out how to format the code.

Outcomes