Can load kml but not kmz, security error

This line works for kml files but for kmz I get an error:

viewer.dataSources.add(Cesium.KmlDataSource.load(‘’, {
canvas: viewer.canvas,};

Security Error: Content at Terra-DV 3D Display may not load data from

I had initial problem loading KML because oursite doesn’t have CORS enabled. Using instead of fixed it (no idea how!). Is that the problem here for KMZ?

Hi @DataVerse,

You may want to try uploading this data to Cesium ion and streaming it into CesiumJS at runtime that way.

I am not familiar with the security error that you are receiving. Has anyone else in the community received this error in the past?


If possible I’d rather host the data on our site. It’s odd it’s fine with KML but not KMZ.

Not sure if anyone else had reported it.

Hi @DataVerse,

This error is new to me! I suspect that it may have something to do with your personal build/dev environment.

Is this related to Opening hyperlinks from KML file to YouTube freezes, but OK with right button - #3 by sam.rothstein?

If so, let’s try to consolidate this issue.