Hi guys,
I'm successfully loading/showing KML files on the map like this:
export function setPlotKmlLayer(uri) {
require(["esri/layers/KMLLayer"], (KMLLayer) => {
const kmlLayer = new KMLLayer({
url: uri
});
view.map.add(kmlLayer, 0);
plotLayer = kmlLayer;
});
}
The uri points to a public endpoint of our own webservice. For security reasons I want to restrict the access to this endpoint so only the esri-servers can access it.
Is there a fixed domain from esri which always access my endpoint?
I found KMLLayer.kmlServiceUrl which has a default value of https://utility.arcgis.com/sharing/kml. So it should be utility.arcgis.com. But is this guaranteed?
thanks
Soko