KML layers on HTTPS sites -- utility.arcgis is not https

768
2
04-19-2017 07:44 AM
JamesUlrich
New Contributor

I cannot load KML into my javascript API maps because the utility.arcgis server is trying to communicate via http:// -- browser is blocking the traffic.

Can we somehow force utility.arcgis to use https??

truncated error message follows:

"was loaded over HTTPS, but requested an insecure script 'http://utility.arcgis.com/sharing/kml?url=.....etc...'. This request has been blocked; the content must be served over HTTPS.

0 Kudos
2 Replies
JamesUlrich
New Contributor

Source code snip:

var kmlUrl = "https://*****.kml";

var kml = new esri.layers.KMLLayer(kmlUrl);

map.addLayer(kml);

0 Kudos
Noah-Sager
Esri Regular Contributor

It looks like the utility.arcgis server is communicating over https in my sample app.

Does it work for you now James Ulrich‌?

-Noah